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

Method createFile

ngp-vscode-ng-language-service/tests/test_helpers.ts:392–396  ·  view source on GitHub ↗
(name: string, content: string)

Source from the content-addressed store, hash-verified

390 }
391
392 async createFile(name: string, content: string): Promise<string> {
393 const filePath = this.fileManager.createFilePath(name);
394 await this.editFile(filePath, content);
395 return filePath;
396 }
397
398 async editFile(filePath: string, content: string, type: 'virtual' | 'physical' = 'physical') {
399 const normPath = await normalizePath(filePath);

Calls 2

editFileMethod · 0.95
createFilePathMethod · 0.80

Tested by

no test coverage detected