// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // using Microsoft.SqlTools.EditorServices.Protocol.MessageProtocol; namespace Microsoft.SqlTools.EditorServices.Protocol.LanguageServer { public class InitializeRequest { public static readonly RequestType Type = RequestType.Create("initialize"); /// /// Gets or sets the root path of the editor's open workspace. /// If null it is assumed that a file was opened without having /// a workspace open. /// public string RootPath { get; set; } /// /// Gets or sets the capabilities provided by the client (editor). /// public ClientCapabilities Capabilities { get; set; } } public class InitializeResult { /// /// Gets or sets the capabilities provided by the language server. /// public ServerCapabilities Capabilities { get; set; } } public class InitializeError { /// /// Gets or sets a boolean indicating whether the client should retry /// sending the Initialize request after showing the error to the user. /// public bool Retry { get; set;} } }