Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions vscode/scripts/install-vscode-extensions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ if command -v python &> /dev/null; then
for extension in "${python_extensions[@]}"; do
install_extension $extension
done
# Fix unwanted warning pop-up in vscode ("Default interpreter path ... could not be resolved")
# cause: https://github.com/microsoft/vscode-python/issues/25820
if code-server --list-extensions | grep -qx "ms-python.vscode-python-envs"; then
code-server --uninstall-extension ms-python.vscode-python-envs
fi
python_path=$(which python)
jq --arg pythonPath "$python_path" '.["python.defaultInterpreterPath"] = $pythonPath' ${REMOTE_CONFIG_DIR}/settings.json > tmp.json && mv tmp.json ${REMOTE_CONFIG_DIR}/settings.json
fi
Expand Down
Loading