MCPcopy Create free account
hub / github.com/angular/angular / didChange

Method didChange

ngp-vscode-ng-language-service/tests/test_helpers.ts:222–233  ·  view source on GitHub ↗
(filePath: string, text: string, version?: number)

Source from the content-addressed store, hash-verified

220 }
221
222 async didChange(filePath: string, text: string, version?: number) {
223 const uri = await toUri(filePath);
224 const v = version !== undefined ? version : ++this.currentVersion;
225 await this.sendNotificationToBoth(
226 'textDocument/didChange',
227 {
228 textDocument: {uri, version: v},
229 contentChanges: [{text}],
230 },
231 filePath,
232 );
233 }
234
235 async didClose(filePath: string) {
236 const uri = await toUri(filePath);

Callers 1

editFileMethod · 0.80

Calls 2

toUriFunction · 0.70

Tested by

no test coverage detected