MCPcopy Create free account
hub / github.com/continuedev/continue / saveFile

Method saveFile

extensions/vscode/src/util/ideUtils.ts:298–306  ·  view source on GitHub ↗
(uri: vscode.Uri)

Source from the content-addressed store, hash-verified

296 }
297
298 saveFile(uri: vscode.Uri) {
299 vscode.window.visibleTextEditors
300 .filter((editor) => this.documentIsCode(editor.document.uri))
301 .forEach((editor) => {
302 if (URI.equal(editor.document.uri.toString(), uri.toString())) {
303 editor.document.save();
304 }
305 });
306 }
307
308 async readRangeInFile(uri: vscode.Uri, range: vscode.Range): Promise<string> {
309 const buffer = await this.readFile(uri);

Callers

nothing calls this directly

Calls 2

documentIsCodeMethod · 0.95
saveMethod · 0.65

Tested by

no test coverage detected