MCPcopy Create free account
hub / github.com/cursorless-dev/cursorless / writeToFile

Method writeToFile

src/testUtil/TestCaseRecorder.ts:88–98  ·  view source on GitHub ↗
(outPath: string, fixture: string)

Source from the content-addressed store, hash-verified

86 }
87
88 private async writeToFile(outPath: string, fixture: string) {
89 fs.writeFileSync(outPath, fixture);
90 vscode.window
91 .showInformationMessage("Cursorless test case saved.", "View")
92 .then(async (action) => {
93 if (action === "View") {
94 const document = await vscode.workspace.openTextDocument(outPath);
95 await vscode.window.showTextDocument(document);
96 }
97 });
98 }
99
100 private async promptSubdirectory(): Promise<boolean> {
101 if (

Callers 1

finishTestCaseMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected