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

Method initialize

client/src/client.ts:1584–1592  ·  view source on GitHub ↗
(capabilities: ServerCapabilities, documentSelector: DocumentSelector)

Source from the content-addressed store, hash-verified

1582 }
1583
1584 public initialize(capabilities: ServerCapabilities, documentSelector: DocumentSelector): void {
1585 if (!capabilities.documentSymbolProvider || !documentSelector) {
1586 return;
1587 }
1588 this.register(this.messages, {
1589 id: UUID.generateUuid(),
1590 registerOptions: Object.assign({}, { documentSelector: documentSelector })
1591 });
1592 }
1593
1594 protected registerLanguageProvider(options: TextDocumentRegistrationOptions): Disposable {
1595 let client = this._client;

Callers

nothing calls this directly

Calls 1

registerMethod · 0.65

Tested by

no test coverage detected