ILanguageClient Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Interface representing a language client which connects to a language sever protocol based language server.
public interface class ILanguageClient
public interface ILanguageClient
type ILanguageClient = interface
Public Interface ILanguageClient
Remarks
All of the methods defined in this interface must be implemented and should not default to throw NotImplementedException.
Properties
ConfigurationSections |
Gets the configuration section names for the language client. This may be null if the language client does not provide settings. |
FilesToWatch |
Gets the list of file names to watch for changes. Changes will be sent to the server via 'workspace/didChangeWatchedFiles' message. The files to watch must be under the current active workspace. The file names can be specified as a relative paths to the exact file, or as glob patterns following the standard in .gitignore see https://www.kernel.org/pub/software/scm/git/docs/gitignore.html files. |
InitializationOptions |
Gets the initialization options object the client wants to send when 'initialize' message is sent. This may be null if the client does not need custom initialization options. |
Name |
Gets the name of the language client (displayed to the user). |
ShowNotificationOnInitializeFailed |
Gets a value indicating whether a notification bubble show be shown when the language server fails to initialize. |
Methods
ActivateAsync(CancellationToken) |
Activates the language server. |
OnLoadedAsync() |
Signals that the extension has been loaded. The server can be started immediately, or wait for user action to start. To start the server, invoke the StartAsync event. |
OnServerInitializedAsync() |
Signals the extension that the language server has been successfully initialized. |
OnServerInitializeFailedAsync(Exception) |
Signals the extension that the language server failed to initialize. |
OnServerInitializeFailedAsync(ILanguageClientInitializationInfo) |
Signals the extension that the language server failed to initialize. |
Events
StartAsync |
Async event to indicate that server should be started. If the server is already started, the request to start will be ignored. |
StopAsync |
Async event to indicate that server should be stopped, if the server has been started. |