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

Method didOpen

ngp-vscode-ng-language-service/tests/test_helpers.ts:206–220  ·  view source on GitHub ↗
(filePath: string, text: string)

Source from the content-addressed store, hash-verified

204 }
205
206 async didOpen(filePath: string, text: string) {
207 const uri = await toUri(filePath);
208 await this.sendNotificationToBoth(
209 'textDocument/didOpen',
210 {
211 textDocument: {
212 uri,
213 languageId: 'typescript',
214 version: ++this.currentVersion,
215 text,
216 },
217 },
218 filePath,
219 );
220 }
221
222 async didChange(filePath: string, text: string, version?: number) {
223 const uri = await toUri(filePath);

Callers 1

openFileMethod · 0.80

Calls 2

toUriFunction · 0.70

Tested by

no test coverage detected