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

Method closeFile

ngp-vscode-ng-language-service/tests/test_helpers.ts:385–390  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

383 }
384
385 async closeFile(filePath: string) {
386 const normPath = await normalizePath(filePath);
387 this.openedFiles = this.openedFiles.filter((u) => u !== normPath);
388 this.fileManager.closeFile(normPath);
389 await this.lspClient.didClose(normPath);
390 }
391
392 async createFile(name: string, content: string): Promise<string> {
393 const filePath = this.fileManager.createFilePath(name);

Callers 3

cleanupMethod · 0.95

Calls 3

didCloseMethod · 0.80
normalizePathFunction · 0.50
filterMethod · 0.45

Tested by

no test coverage detected