summaryrefslogtreecommitdiff
path: root/extension/src/activation/environmentSetup.ts
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-06-30 02:40:34 -0700
committerNate Sesti <sestinj@gmail.com>2023-06-30 02:40:34 -0700
commiteac4d980a670b266fe2637cb91b0e8f9c4d85710 (patch)
tree8619e507534ff7bdcc2d0a494251af510192f452 /extension/src/activation/environmentSetup.ts
parent53981dc70b404e98239cdce1e2e59b86927c5fd3 (diff)
downloadsncontinue-eac4d980a670b266fe2637cb91b0e8f9c4d85710.tar.gz
sncontinue-eac4d980a670b266fe2637cb91b0e8f9c4d85710.tar.bz2
sncontinue-eac4d980a670b266fe2637cb91b0e8f9c4d85710.zip
fixed websockets issue
Diffstat (limited to 'extension/src/activation/environmentSetup.ts')
-rw-r--r--extension/src/activation/environmentSetup.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/extension/src/activation/environmentSetup.ts b/extension/src/activation/environmentSetup.ts
index 2d9afaec..f1aace77 100644
--- a/extension/src/activation/environmentSetup.ts
+++ b/extension/src/activation/environmentSetup.ts
@@ -71,7 +71,8 @@ async function getPythonPipCommands() {
}
const version = stdout.split(" ")[1];
- if (version < "3.7") {
+ const [major, minor] = version.split(".");
+ if (parseInt(major) !== 3 || parseInt(minor) < 7) {
vscode.window.showErrorMessage(
"Continue requires Python3 version 3.7 or greater. Please update your Python3 installation, reload VS Code, and try again."
);