MCPcopy
hub / github.com/continuedev/continue / getCurrentFile

Method getCurrentFile

extensions/vscode/src/VsCodeIde.ts:425–434  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

423 }
424
425 async getCurrentFile() {
426 if (!vscode.window.activeTextEditor) {
427 return undefined;
428 }
429 return {
430 isUntitled: vscode.window.activeTextEditor.document.isUntitled,
431 path: vscode.window.activeTextEditor.document.uri.toString(),
432 contents: vscode.window.activeTextEditor.document.getText(),
433 };
434 }
435
436 async getPinnedFiles(): Promise<string[]> {
437 const tabArray = vscode.window.tabGroups.all[0].tabs;

Callers

nothing calls this directly

Calls 1

getTextMethod · 0.80

Tested by

no test coverage detected