mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-28 01:25:44 -05:00
Correcting typo (#1882)
* Correcting tyo * removing extra space * tests
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -47,7 +47,6 @@ namespace Microsoft.SqlTools.ServiceLayer.Utility
|
||||
}, requestContext);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Synchronous action with custom result
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user