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

Method cleanup

ngp-vscode-ng-language-service/tests/test_helpers.ts:528–539  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

526 }
527
528 async cleanup() {
529 for (const uri of this.openedFiles) {
530 await this.closeFile(uri);
531 }
532 this.openedFiles = [];
533 const files = [...this.fileManager.getFiles()];
534 for (const file of files) {
535 await fs.rm(file, {force: true});
536 await this.lspClient.didChangeWatchedFiles(file, 3);
537 }
538 await this.fileManager.cleanup();
539 }
540
541 async run(name: string, content: string, callback: (filePath: string) => Promise<void>) {
542 try {

Callers 1

runMethod · 0.95

Calls 5

closeFileMethod · 0.95
getFilesMethod · 0.80
rmMethod · 0.80
didChangeWatchedFilesMethod · 0.80
cleanupMethod · 0.65

Tested by

no test coverage detected