(event: FileEvent)
| 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(); |
nothing calls this directly
no test coverage detected