summaryrefslogtreecommitdiff
path: root/extension/src/commands.ts
diff options
context:
space:
mode:
Diffstat (limited to 'extension/src/commands.ts')
-rw-r--r--extension/src/commands.ts13
1 files changed, 8 insertions, 5 deletions
diff --git a/extension/src/commands.ts b/extension/src/commands.ts
index 1da2f04e..35d466e8 100644
--- a/extension/src/commands.ts
+++ b/extension/src/commands.ts
@@ -1,9 +1,6 @@
import * as vscode from "vscode";
-import {
- decorationManager,
- showAnswerInTextEditor,
- showGutterSpinner,
-} from "./decorations";
+import * as path from "path";
+import * as os from "os";
import {
acceptSuggestionCommand,
rejectSuggestionCommand,
@@ -65,6 +62,12 @@ const commandsMap: { [command: string]: (...args: any) => any } = {
ideProtocolClient.sendMainUserInput(text);
}
},
+ "continue.viewLogs": async () => {
+ // Open ~/.continue/continue.log
+ const logFile = path.join(os.homedir(), ".continue", "continue.log");
+ const uri = vscode.Uri.file(logFile);
+ await vscode.window.showTextDocument(uri);
+ },
};
export function registerAllCommands(context: vscode.ExtensionContext) {