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

Method initialize

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

Source from the content-addressed store, hash-verified

1494 }
1495
1496 public initialize(capabilities: ServerCapabilities, documentSelector: DocumentSelector): void {
1497 if (!capabilities.referencesProvider || !documentSelector) {
1498 return;
1499 }
1500 this.register(this.messages, {
1501 id: UUID.generateUuid(),
1502 registerOptions: Object.assign({}, { documentSelector: documentSelector })
1503 });
1504 }
1505
1506 protected registerLanguageProvider(options: TextDocumentRegistrationOptions): Disposable {
1507 let client = this._client;

Callers

nothing calls this directly

Calls 1

registerMethod · 0.65

Tested by

no test coverage detected