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

Method run

ngp-vscode-ng-language-service/tests/test_helpers.ts:541–551  ·  view source on GitHub ↗
(name: string, content: string, callback: (filePath: string) => Promise<void>)

Source from the content-addressed store, hash-verified

539 }
540
541 async run(name: string, content: string, callback: (filePath: string) => Promise<void>) {
542 try {
543 const filePath = await this.createFile(name, content);
544 const finalContent = await this.getFileContent(filePath);
545 await this.openFile(filePath, finalContent);
546 await callback(filePath);
547 } finally {
548 await this.cleanup();
549 this.fileManager.setCursorOffset(undefined);
550 }
551 }
552}

Callers

nothing calls this directly

Calls 6

createFileMethod · 0.95
getFileContentMethod · 0.95
openFileMethod · 0.95
cleanupMethod · 0.95
setCursorOffsetMethod · 0.80
callbackFunction · 0.50

Tested by

no test coverage detected