MCPcopy Index your code
hub / github.com/microsoft/vscode-languageserver-node / register

Method register

client/src/client.ts:2041–2049  ·  view source on GitHub ↗
(_message: RPCMessageType, data: RegistrationData<DidChangeConfigurationRegistrationOptions>)

Source from the content-addressed store, hash-verified

2039 }
2040
2041 public register(_message: RPCMessageType, data: RegistrationData<DidChangeConfigurationRegistrationOptions>): void {
2042 let disposable = Workspace.onDidChangeConfiguration(() => {
2043 this.onDidChangeConfiguration(data.registerOptions.section);
2044 });
2045 this._listeners.set(data.id, disposable);
2046 if (data.registerOptions.section !== void 0) {
2047 this.onDidChangeConfiguration(data.registerOptions.section);
2048 }
2049 }
2050
2051 public unregister(id: string): void {
2052 let disposable = this._listeners.get(id);

Callers 1

initializeMethod · 0.95

Calls 3

setMethod · 0.80

Tested by

no test coverage detected