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

Method initialize

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

Source from the content-addressed store, hash-verified

1452 }
1453
1454 public initialize(capabilities: ServerCapabilities, documentSelector: DocumentSelector): void {
1455 if (!capabilities.definitionProvider || !documentSelector) {
1456 return;
1457 }
1458 this.register(this.messages, {
1459 id: UUID.generateUuid(),
1460 registerOptions: Object.assign({}, { documentSelector: documentSelector })
1461 });
1462 }
1463
1464 protected registerLanguageProvider(options: TextDocumentRegistrationOptions): Disposable {
1465 let client = this._client;

Callers

nothing calls this directly

Calls 1

registerMethod · 0.65

Tested by

no test coverage detected