Repository navigation
Open
Labels
Area-TerminalControlIssues pertaining to the terminal control (input, selection, keybindings, mouse interaction, etc.)Issues pertaining to the terminal control (input, selection, keybindings, mouse interaction, etc.)Area-UserInterfaceIssues pertaining to the user interface of the Console or TerminalIssues pertaining to the user interface of the Console or TerminalIssue-ScenarioProduct-TerminalThe new Windows Terminal.The new Windows Terminal.
Milestone
Description
Description of the new feature/enhancement
https://github.com/microsoft/vscode-docs/blob/vnext/release-notes/v1_69.md#shell-integration
- shellIntegration
- Command navigation
- run-recent-command
- Go to recent directory
- 👍
Maintainer note: I'm hijacking this issue body, for issue tracking purposes
Main elements of shell integration
- Feature Request - Scripts Panel #1595
-
sendInputshould be previewable #12861 - Add action to bring up a Cmd Palette with your previous directories #12863
- Add an action to copy CWD path to clipboard #12860
- Add an action to "Open in File Explorer" #12859
- Command Decorations / Marks in the gutter / margin / padding #16599
- Recent commands UI #14779
- Automatic shell integration
- Experimental: add support for scrollbar marks #12948
- Enable marks for Stable builds #15057
- Add horizontal seperators between commands (do we really not have this elsewhere?)
- Vscode-style sticky-scrolling but with prompts #14754
- Draw a horizontal line / ruler between commands (read: blocks ) #17493
Related, indirectly
- megathread: Scrollbar Marks #11000
- Enhance shell autocompletion with a cool new user interface and shell completion protocol #3121
- ITerm2-like terminal autocomplete #6632
- Request: Right-click menu inside TerminalControl (w/ Copy & Paste?) #3337
- I'm including this because it creates a highly-visible surface by which the CWD can be exposed.
- Furthermore: Right-click on a region of output -> "Copy all command output"
- Right-click -> "Rerun this command"
References
- Support PowerShell intellisense in the terminal vscode#154662
- Pwsh autocomplete vscode#171648
- https://github.com/microsoft/vscode/commits/main/src/vs/workbench/contrib/terminal/browser/media/shellIntegration.ps1
edit 2025-04-15
VsCode impl
- This is where VsCode actually injects the args:
- https://github.com/microsoft/vscode/blob/3a28d8d2e1044f2fe28f93076df911fd8fc9fd98/src/vs/platform/terminal/node/terminalEnvironment.ts#L114-L149
- looks like it's mostly:
- Is this commandline something we know how to inject our script into? If so, then inject the CLI args and environment vars
- https://github.com/microsoft/vscode/blob/ef6f1349eb824cef6635d9a3083b871a1c5ddbdf/src/vs/platform/terminal/common/xterm/shellIntegrationAddon.ts#
- https://github.com/microsoft/vscode/blob/ef6f1349eb824cef6635d9a3083b871a1c5ddbdf/src/vs/workbench/contrib/terminal/common/scripts/shellIntegration.ps1#
Reacted by Segev Finer, heartacker, Duy K. Bui, Nick, Matthew A Cargile, Araxeus, Satvik Pendem and darkred
Metadata
Metadata
Assignees
Labels
Area-TerminalControlIssues pertaining to the terminal control (input, selection, keybindings, mouse interaction, etc.)Issues pertaining to the terminal control (input, selection, keybindings, mouse interaction, etc.)Area-UserInterfaceIssues pertaining to the user interface of the Console or TerminalIssues pertaining to the user interface of the Console or TerminalIssue-ScenarioProduct-TerminalThe new Windows Terminal.The new Windows Terminal.
Activity
zadjii-msft commentedon Jul 7, 2022
I'm tempted to leave this open as a megathread, linking the other things we have planned across the repo:
sendInputshould be previewable #12861WSLUser commentedon Jul 8, 2022
Also #6632
zadjii-msft commentedon Jul 8, 2022
I actually intentionally omitted #6632 from that list. #6632 is more about an autocomplete menu who's contents are populated based on the words that are currently in the buffer. The rest of these VsCode features are more driven by specific metadata in the prompt to indicate things like the CWD, the command that's run, where the prompt is, etc. One is something exclusively powered by the terminal, the other is powered by a cooperating shell/commandline program.
It's definitely related, but not necessarily "shell integration" 😄
[-]nice feature from vscode[/-][+]VSCode-like Shell Integration[/+]WSLUser commentedon Jul 8, 2022
Kitty also has shell integration for various shells. But seems to really intermingle with shells in a way that Iterm2 does not. Wezterm is also looking to implement Iterm2 shell integration from what I saw but nothing has come of that yet other than implementing OSC 7 quite awhile ago.
Stanzilla commentedon Jul 28, 2022
iTerm also has a really cool password manager that integrates with 1Password for example
segevfiner commentedon Aug 4, 2022
VS Code has now enabled its shell integration by default in 1.70.
khuongduybui commentedon Aug 14, 2022
I know it's trivial but I really like the command decoration circles too...
khuongduybui commentedon Aug 14, 2022
And copy entire command's output!
Add buttons for selecting commands, output to context menu (#15020)
Add a `useCommandline` property to the suggestions action (#15027)
Add support for "Tasks" in the Suggestions UI (#15664)
zadjii-msft commentedon Feb 16, 2024
in
dev/migrie/fhl/tasks-paneLocal tasks .wt.json wt.json actions
Since these notes seem to be no where else:
localtasks / suggestions.