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

Function notifyFileEvent

client/src/client.ts:2722–2736  ·  view source on GitHub ↗
(event: FileEvent)

Source from the content-addressed store, hash-verified

2720 }
2721
2722 private notifyFileEvent(event: FileEvent): void {
2723 this._fileEvents.push(event);
2724 this._fileEventDelayer.trigger(() => {
2725 this.onReady().then(() => {
2726 this.resolveConnection().then(connection => {
2727 if (this.isConnectionActive()) {
2728 connection.didChangeWatchedFiles({ changes: this._fileEvents });
2729 }
2730 this._fileEvents = [];
2731 })
2732 }, (error) => {
2733 this.error(`Notify file events failed.`, error);
2734 });
2735 });
2736 }
2737
2738 private forceDocumentSync(): void {
2739 (this._dynamicFeatures.get(DidChangeTextDocumentNotification.type.method) as DidChangeTextDocumentFeature).forceDelivery();

Callers

nothing calls this directly

Calls 3

triggerMethod · 0.80
didChangeWatchedFilesMethod · 0.80
errorMethod · 0.65

Tested by

no test coverage detected