-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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#
Reactions are currently unavailable
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.