mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-14 03:58:35 -05:00
Move unused forked code to external directory (#1192)
* Move unused forked code to external directory * Fix SLN build errors * Add back resource provider core since it's referenced by main resource provider project * Update PackageProjects step of pipeline
This commit is contained in:
23
external/Microsoft.SqlTools.Hosting.Contracts/Internal/Error.cs
vendored
Normal file
23
external/Microsoft.SqlTools.Hosting.Contracts/Internal/Error.cs
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
//
|
||||
// Copyright (c) Microsoft. All rights reserved.
|
||||
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||
//
|
||||
|
||||
namespace Microsoft.SqlTools.Hosting.Contracts.Internal
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines the message contract for errors returned via <see cref="Microsoft.SqlTools.Hosting.Protocol.RequestContext.SendError"/>
|
||||
/// </summary>
|
||||
public class Error
|
||||
{
|
||||
/// <summary>
|
||||
/// Error code. If omitted will default to 0
|
||||
/// </summary>
|
||||
public int Code { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Error message
|
||||
/// </summary>
|
||||
public string Message { get; set; }
|
||||
}
|
||||
}
|
||||
16
external/Microsoft.SqlTools.Hosting.Contracts/Internal/ExitNotification.cs
vendored
Normal file
16
external/Microsoft.SqlTools.Hosting.Contracts/Internal/ExitNotification.cs
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
//
|
||||
// Copyright (c) Microsoft. All rights reserved.
|
||||
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||
//
|
||||
|
||||
namespace Microsoft.SqlTools.Hosting.Contracts.Internal
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines an event that is sent from the client to notify that
|
||||
/// the client is exiting and the server should as well.
|
||||
/// </summary>
|
||||
public class ExitNotification
|
||||
{
|
||||
public static readonly EventType<object> Type = EventType<object>.Create("exit");
|
||||
}
|
||||
}
|
||||
26
external/Microsoft.SqlTools.Hosting.Contracts/Internal/HostingErrorNotification.cs
vendored
Normal file
26
external/Microsoft.SqlTools.Hosting.Contracts/Internal/HostingErrorNotification.cs
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
//
|
||||
// Copyright (c) Microsoft. All rights reserved.
|
||||
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||
//
|
||||
|
||||
namespace Microsoft.SqlTools.Hosting.Contracts.Internal
|
||||
{
|
||||
/// <summary>
|
||||
/// Parameters to be used for reporting hosting-level errors, such as protocol violations
|
||||
/// </summary>
|
||||
public class HostingErrorParams
|
||||
{
|
||||
/// <summary>
|
||||
/// The message of the error
|
||||
/// </summary>
|
||||
public string Message { get; set; }
|
||||
}
|
||||
|
||||
public class HostingErrorNotification
|
||||
{
|
||||
public static readonly
|
||||
EventType<HostingErrorParams> Type =
|
||||
EventType<HostingErrorParams>.Create("hosting/error");
|
||||
|
||||
}
|
||||
}
|
||||
17
external/Microsoft.SqlTools.Hosting.Contracts/Internal/ShutdownRequest.cs
vendored
Normal file
17
external/Microsoft.SqlTools.Hosting.Contracts/Internal/ShutdownRequest.cs
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// Copyright (c) Microsoft. All rights reserved.
|
||||
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||
//
|
||||
|
||||
namespace Microsoft.SqlTools.Hosting.Contracts.Internal
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines a message that is sent from the client to request
|
||||
/// that the server shut down.
|
||||
/// </summary>
|
||||
public class ShutdownRequest
|
||||
{
|
||||
public static readonly RequestType<object, object> Type = RequestType<object, object>.Create("shutdown");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user