LanguageServerProvider Class
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.
Language server provider for implementing language services using Visual Studio Extensibility extension parts.
[Microsoft.VisualStudio.Extensibility.ExtensionContract(typeof(Microsoft.VisualStudio.RpcContracts.LanguageServerProvider.ILanguageServerProvider), typeof(Microsoft.VisualStudio.Extensibility.LanguageServer.LanguageServerProviderService))]
[Microsoft.VisualStudio.Extensibility.ExtensionPart(typeof(Microsoft.VisualStudio.Extensibility.LanguageServer.LanguageServerProvider), new System.String[] { "LanguageServerProviderConfiguration" })]
public abstract class LanguageServerProvider : Microsoft.VisualStudio.Extensibility.ExtensionPart
[<Microsoft.VisualStudio.Extensibility.ExtensionContract(typeof(Microsoft.VisualStudio.RpcContracts.LanguageServerProvider.ILanguageServerProvider), typeof(Microsoft.VisualStudio.Extensibility.LanguageServer.LanguageServerProviderService))>]
[<Microsoft.VisualStudio.Extensibility.ExtensionPart(typeof(Microsoft.VisualStudio.Extensibility.LanguageServer.LanguageServerProvider), new System.String[] { "LanguageServerProviderConfiguration" })>]
type LanguageServerProvider = class
inherit ExtensionPart
Public MustInherit Class LanguageServerProvider
Inherits ExtensionPart
- Inheritance
- Attributes
Constructors
LanguageServerProvider() |
Initializes a new instance of the LanguageServerProvider class. |
LanguageServerProvider(ExtensionCore, VisualStudioExtensibility) |
Initializes a new instance of the LanguageServerProvider class. |
Fields
LanguageServerBaseDocumentType |
Base document type for language servers which define the scope of applicable documents for this server. |
Properties
Container |
Gets the container instance that hosts this and related parts. (Inherited from ExtensionPart) |
Enabled |
Gets or sets a value indicating whether the server provider is enabled and should be started automatically when a matching content type document is opened. |
Extensibility |
Gets the extensibility instance for this service. (Inherited from ExtensionPart) |
IsDisposed |
Gets a value indicating whether the object is disposed. (Inherited from ExtensionPart) |
LanguageServerOptions |
Gets or sets LanguageServerProvider options used by Visual Studio to customize the server configuration. |
LanguageServerProviderConfiguration |
Gets the configuration object for this language server provider. The value of this property is evaluated at compile time when building the extension. |
Methods
CreateServerConnectionAsync(CancellationToken) |
This method is called by Visual Studio to notify the extension that the LSP server should be started. |
Dispose() | (Inherited from ExtensionPart) |
Dispose(Boolean) |
Disposes the instane and underlying services. |
InitializeAsync(CancellationToken) |
Provides an asynchronous way for extension parts to initialize their fields. This method is called before the instance is handed to Visual Studio. (Inherited from ExtensionPart) |
OnServerInitializationResultAsync(ServerInitializationResult, LanguageServerInitializationFailureInfo, CancellationToken) |
Method called by Visual Studio when the LSP server has completed its start-up and configuration steps, allowing the extension to handle the success and failure scenarios. |