Do not enable venv in terminal for bash-like oneshot task invocations (#8444)

Release Notes:
- Work around #8334 by only activating venv in the terminal not in tasks
(see #8440 for a proper solution)
- To use venv modify your tasks in the following way:
```json
{
  "label": "Python main.py",
  "command": "sh",
  "args": ["-c", "source .venv/bin/activate && python3 main.py"]
}
```

---------

Co-authored-by: Kirill Bulatov <kirill@zed.dev>
This commit is contained in:
Stanislav Alekseev 2024-03-21 19:40:33 +02:00 committed by GitHub
parent cd61297740
commit 85fdcef564
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 109 additions and 49 deletions

13
Cargo.lock generated
View file

@ -87,10 +87,11 @@ dependencies = [
[[package]]
name = "alacritty_terminal"
version = "0.22.1-dev"
source = "git+https://github.com/alacritty/alacritty?rev=992011a4cd9a35f197acc0a0bd430d89a0d01013#992011a4cd9a35f197acc0a0bd430d89a0d01013"
version = "0.23.0-rc1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bc2c16faa5425a10be102dda76f73d76049b44746e18ddeefc44d78bbe76cbce"
dependencies = [
"base64 0.21.4",
"base64 0.22.0",
"bitflags 2.4.2",
"home",
"libc",
@ -1292,6 +1293,12 @@ version = "0.21.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9ba43ea6f343b788c8764558649e08df62f86c6ef251fdaeb1ffd010a9ae50a2"
[[package]]
name = "base64"
version = "0.22.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9475866fec1451be56a3c2400fd081ff546538961565ccb5b7142cbd22bc7a51"
[[package]]
name = "base64-simd"
version = "0.8.0"