summaryrefslogtreecommitdiff
path: root/extension
diff options
context:
space:
mode:
Diffstat (limited to 'extension')
-rw-r--r--extension/package-lock.json4
-rw-r--r--extension/package.json2
-rw-r--r--extension/src/activation/environmentSetup.ts12
-rw-r--r--extension/src/lang-server/codeLens.ts4
4 files changed, 15 insertions, 7 deletions
diff --git a/extension/package-lock.json b/extension/package-lock.json
index 102d8917..26e1a631 100644
--- a/extension/package-lock.json
+++ b/extension/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "continue",
- "version": "0.0.89",
+ "version": "0.0.91",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "continue",
- "version": "0.0.89",
+ "version": "0.0.91",
"license": "Apache-2.0",
"dependencies": {
"@electron/rebuild": "^3.2.10",
diff --git a/extension/package.json b/extension/package.json
index b2db62e2..314e540f 100644
--- a/extension/package.json
+++ b/extension/package.json
@@ -14,7 +14,7 @@
"displayName": "Continue",
"pricing": "Free",
"description": "The open-source coding autopilot",
- "version": "0.0.89",
+ "version": "0.0.91",
"publisher": "Continue",
"engines": {
"vscode": "^1.74.0"
diff --git a/extension/src/activation/environmentSetup.ts b/extension/src/activation/environmentSetup.ts
index b8c23733..2d9afaec 100644
--- a/extension/src/activation/environmentSetup.ts
+++ b/extension/src/activation/environmentSetup.ts
@@ -66,10 +66,18 @@ async function getPythonPipCommands() {
vscode.window.showErrorMessage(
"Continue requires Python3. Please install from https://www.python.org/downloads, reload VS Code, and try again."
);
- throw new Error("Python3 is not installed.");
+ throw new Error("Python 3.7 or greater is not installed.");
}
}
- let pipCmd = pythonCmd.endsWith("3") ? "pip3" : "pip";
+
+ const version = stdout.split(" ")[1];
+ if (version < "3.7") {
+ vscode.window.showErrorMessage(
+ "Continue requires Python3 version 3.7 or greater. Please update your Python3 installation, reload VS Code, and try again."
+ );
+ throw new Error("Python3 is not installed.");
+ }
+ const pipCmd = pythonCmd.endsWith("3") ? "pip3" : "pip";
return [pythonCmd, pipCmd];
}
diff --git a/extension/src/lang-server/codeLens.ts b/extension/src/lang-server/codeLens.ts
index 03a9a0a7..21448e31 100644
--- a/extension/src/lang-server/codeLens.ts
+++ b/extension/src/lang-server/codeLens.ts
@@ -21,12 +21,12 @@ class SuggestionsCodeLensProvider implements vscode.CodeLensProvider {
codeLenses.push(
new vscode.CodeLens(range, {
title: "Accept ✅",
- command: locked ? "" : "continue.acceptSuggestion",
+ command: "continue.acceptSuggestion",
arguments: [suggestion],
}),
new vscode.CodeLens(range, {
title: "Reject ❌",
- command: locked ? "" : "continue.rejectSuggestion",
+ command: "continue.rejectSuggestion",
arguments: [suggestion],
})
);