LanguageServer Class |
Namespace: VSCode
public class LanguageServer : IDisposable
The LanguageServer type exposes the following members.
Name | Description | |
---|---|---|
![]() | LanguageServer | Initializes a new instance of the LanguageServer class |
![]() | LanguageServer(ServerCapabilities) | Initializes a new instance of the LanguageServer class |
Name | Description | |
---|---|---|
![]() | Dispose | Releases all resources used by the LanguageServer |
![]() | GetFeatureT | |
![]() | SendNotification(String) |
Sends a notification message to the client.
|
![]() | SendNotification(String, Object) |
Sends a notification message to the client.
|
![]() | SendRequestAsync(String) |
Sends a request message to the client and awaits a response.
|
![]() | SendRequestAsync(String, Object) |
Sends a request message to the client and awaits a response.
|
![]() | SendResponseAsync(Int32, Object) |
Sends a response to the client using the provided ID and result.
|
![]() | SendResponseAsync(Int32, Object, Object) |
Sends a response to the client using the provided ID, result, and error.
|
![]() | Start |
Starts the language server (enables sending and receiving messages).
|
![]() | Stop |
Stops the language server.
|
![]() | WaitForState(LanguageServerState) | |
![]() | WaitForState(LanguageServerState, TimeSpan) |
Name | Description | |
---|---|---|
![]() | Exit | |
![]() | Initialize | |
![]() | NotificationReceived |
An event fired when notifications are received from the client.
|
![]() | RequestReceived |
An event fired when requests are received from the client.
|
![]() | ResponseReceived |
An event fired when responses are received from the client. The SendRequestAsync() |
Name | Description | |
---|---|---|
![]() | ToJObject |
Converts this instance to a JObject.
(Defined by ObjectExtensions.) |
using (LanguageServer server = new LanguageServer()) { server.Start(); server.Editor.ShowMessage(MessageType.Info, "Hello from .NET!"); }