Correcting typo (#1882)

* Correcting tyo

* removing extra space

* tests
This commit is contained in:
Benjin Dubishar
2023-02-27 16:14:59 -08:00
committed by GitHub
parent b44f0d561f
commit dc259d70ad
4 changed files with 8 additions and 9 deletions

View File

@@ -11,15 +11,15 @@ namespace Microsoft.SqlTools.ServiceLayer.SqlProjects.Contracts
/// <summary>
/// Get the cross-platform compatibility status for a project
/// </summary>
public class GetCrossPlatformCompatiblityRequest
public class GetCrossPlatformCompatibilityRequest
{
public static readonly RequestType<SqlProjectParams, GetCrossPlatformCompatiblityResult> Type = RequestType<SqlProjectParams, GetCrossPlatformCompatiblityResult>.Create("sqlProjects/getCrossPlatformCompatibility");
public static readonly RequestType<SqlProjectParams, GetCrossPlatformCompatibilityResult> Type = RequestType<SqlProjectParams, GetCrossPlatformCompatibilityResult>.Create("sqlProjects/getCrossPlatformCompatibility");
}
/// <summary>
/// Result containing whether the project is cross-platform compatible
/// </summary>
public class GetCrossPlatformCompatiblityResult : ResultStatus
public class GetCrossPlatformCompatibilityResult : ResultStatus
{
/// <summary>
/// Whether the project is cross-platform compatible

View File

@@ -44,7 +44,7 @@ namespace Microsoft.SqlTools.ServiceLayer.SqlProjects
serviceHost.SetRequestHandler(OpenSqlProjectRequest.Type, HandleOpenSqlProjectRequest, isParallelProcessingSupported: true);
serviceHost.SetRequestHandler(CloseSqlProjectRequest.Type, HandleCloseSqlProjectRequest, isParallelProcessingSupported: true);
serviceHost.SetRequestHandler(CreateSqlProjectRequest.Type, HandleCreateSqlProjectRequest, isParallelProcessingSupported: true);
serviceHost.SetRequestHandler(GetCrossPlatformCompatiblityRequest.Type, HandleGetCrossPlatformCompatibilityRequest, isParallelProcessingSupported: true);
serviceHost.SetRequestHandler(GetCrossPlatformCompatibilityRequest.Type, HandleGetCrossPlatformCompatibilityRequest, isParallelProcessingSupported: true);
serviceHost.SetRequestHandler(UpdateProjectForCrossPlatformRequest.Type, HandleUpdateProjectForCrossPlatformRequest, isParallelProcessingSupported: false);
// SQL object script functions
@@ -108,11 +108,11 @@ namespace Microsoft.SqlTools.ServiceLayer.SqlProjects
}, requestContext);
}
internal async Task HandleGetCrossPlatformCompatibilityRequest(SqlProjectParams requestParams, RequestContext<GetCrossPlatformCompatiblityResult> requestContext)
internal async Task HandleGetCrossPlatformCompatibilityRequest(SqlProjectParams requestParams, RequestContext<GetCrossPlatformCompatibilityResult> requestContext)
{
await RunWithErrorHandling(() =>
{
return new GetCrossPlatformCompatiblityResult()
return new GetCrossPlatformCompatibilityResult()
{
Success = true,
ErrorMessage = null,

View File

@@ -47,7 +47,6 @@ namespace Microsoft.SqlTools.ServiceLayer.Utility
}, requestContext);
}
/// <summary>
/// Synchronous action with custom result
/// </summary>