MCPcopy
hub / github.com/microsoft/vscode-languageserver-node / StaticFeature

Interface StaticFeature

client/src/client.ts:579–605  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

577 * server. It is wired during the initialize sequence.
578 */
579export interface StaticFeature {
580 /**
581 * Called to fill the initialize params.
582 *
583 * @params the initialize params.
584 */
585 fillInitializeParams?: (params: InitializeParams) => void;
586
587 /**
588 * Called to fill in the client capabilities this feature implements.
589 *
590 * @param capabilities The client capabilities to fill.
591 */
592 fillClientCapabilities(capabilities: ClientCapabilities): void;
593
594 /**
595 * Initialize the feature. This method is called on a feature instance
596 * when the client has successfully received the initalize request from
597 * the server and before the client sends the initialized notification
598 * to the server.
599 *
600 * @param capabilities the server capabilities
601 * @param documentSelector the document selector pass to the client's constuctor.
602 * May be `undefined` if the client was created without a selector.
603 */
604 initialize(capabilities: ServerCapabilities, documentSelector: DocumentSelector | undefined): void;
605}
606
607export interface DynamicFeature<T> {
608

Callers 1

Implementers 15

ConfigurationFeatureclient/src/configuration.ts
TypeDefinitionFeatureclient/src/typeDefinition.ts
DidOpenTextDocumentFeatureclient/src/client.ts
DidCloseTextDocumentFeatureclient/src/client.ts
DidChangeTextDocumentFeatureclient/src/client.ts
WillSaveFeatureclient/src/client.ts
WillSaveWaitUntilFeatureclient/src/client.ts
DidSaveTextDocumentFeatureclient/src/client.ts
FileSystemWatcherFeatureclient/src/client.ts
CompletionItemFeatureclient/src/client.ts
HoverFeatureclient/src/client.ts
SignatureHelpFeatureclient/src/client.ts

Calls

no outgoing calls

Tested by

no test coverage detected