Commit 704cd06
committed
src/goEnvironmentStatus.ts: use vscode.env.shell to determine shell type
When the callback for vscode.window.onDidOpenTerminal is called
terminal.name is typically unset and can change during launch.
The API for vscode.env.shell has stabilized so we can use that
value instead. Removed support for windows shells, as this code
path only runs on macOS.
Fixes #2283.
Change-Id: I62517812ddc194393ed36c89dc6fd13f4ef77b71
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/412314
Reviewed-by: Hyang-Ah Hana Kim <[email protected]>
Run-TryBot: Jamal Carvalho <[email protected]>
TryBot-Result: kokoro <[email protected]>1 parent c31bc21 commit 704cd06
1 file changed
+3
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
374 | 374 | | |
375 | 375 | | |
376 | 376 | | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
| 377 | + | |
382 | 378 | | |
383 | 379 | | |
384 | | - | |
| 380 | + | |
385 | 381 | | |
386 | 382 | | |
387 | | - | |
| 383 | + | |
388 | 384 | | |
389 | 385 | | |
390 | 386 | | |
| |||
0 commit comments