aboutsummaryrefslogtreecommitdiff
path: root/pw_ide
diff options
context:
space:
mode:
authorChad Norvell <chadnorvell@google.com>2024-02-06 22:48:50 +0000
committerCQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>2024-02-06 22:48:50 +0000
commit7a5caf8fec37c8b022ab8bcc2cb89980f30dc36d (patch)
treeae5304de7e0471e66dd9816aea27bd82b7e17edd /pw_ide
parent17fc4f9c0ea966929a949e81c27656e4d2b9ea57 (diff)
downloadpigweed-7a5caf8fec37c8b022ab8bcc2cb89980f30dc36d.tar.gz
pw_ide: Disable Python terminal activation in VSC
VS Code now automatically activates your selected Python environment when you launch the integrated terminal. We don't want this, because (1) Python environment activation is just one component of activating the Pigweed environment, and (2) we have other mechanisms for doing a full activation of the Pigweed environment in VS Code. Change-Id: I94ed88467e285156e049330fdfc64cf0f093c92d Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/190592 Commit-Queue: Chad Norvell <chadnorvell@google.com> Reviewed-by: Kayce Basques <kayce@google.com> Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'pw_ide')
-rw-r--r--pw_ide/py/pw_ide/vscode.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pw_ide/py/pw_ide/vscode.py b/pw_ide/py/pw_ide/vscode.py
index 4990867a6..febe31125 100644
--- a/pw_ide/py/pw_ide/vscode.py
+++ b/pw_ide/py/pw_ide/vscode.py
@@ -151,6 +151,7 @@ _DEFAULT_SETTINGS: EditorSettingsDict = OrderedDict(
),
# The "strict" mode is much more strict than what we currently enforce.
"python.analysis.typeCheckingMode": "basic",
+ "python.terminal.activateEnvironment": False,
"python.testing.unittestEnabled": True,
"[python]": OrderedDict({"editor.tabSize": 4}),
"typescript.tsc.autoDetect": "off",