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

Function register

client/src/client.ts:701–710  ·  view source on GitHub ↗
(_message: RPCMessageType, data: RegistrationData<TextDocumentRegistrationOptions>)

Source from the content-addressed store, hash-verified

699 public abstract initialize(capabilities: ServerCapabilities, documentSelector: DocumentSelector | undefined): void;
700
701 public register(_message: RPCMessageType, data: RegistrationData<TextDocumentRegistrationOptions>): void {
702
703 if (!data.registerOptions.documentSelector) {
704 return;
705 }
706 if (!this._listener) {
707 this._listener = this._event(this.callback, this);
708 }
709 this._selectors.set(data.id, data.registerOptions.documentSelector);
710 }
711
712 private callback(data: E): void {
713 if (!this._selectorFilter || this._selectorFilter(this._selectors.values(), data)) {

Callers

nothing calls this directly

Calls 2

setMethod · 0.80

Tested by

no test coverage detected