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

Function callback

client/src/client.ts:712–721  ·  view source on GitHub ↗
(data: E)

Source from the content-addressed store, hash-verified

710 }
711
712 private callback(data: E): void {
713 if (!this._selectorFilter || this._selectorFilter(this._selectors.values(), data)) {
714 if (this._middleware) {
715 this._middleware(data, (data) => this._client.sendNotification(this._type, this._createParams(data)));
716 } else {
717 this._client.sendNotification(this._type, this._createParams(data));
718 }
719 this.notificationSent(data);
720 }
721 }
722
723 protected notificationSent(_data: E): void {
724 }

Callers 2

resolveFunction · 0.50
rejectFunction · 0.50

Calls 3

valuesMethod · 0.80
sendNotificationMethod · 0.65
notificationSentMethod · 0.45

Tested by

no test coverage detected