Skip to content

Simplify shell integration manual install by deferring to the code CLI #153921

@Tyriar

Description

@Tyriar

Currently install is a little cumbersome, for example:

Add the following to your PowerShell profile, replacing <InstallDir> with VS Code's installation directory. Run code $Profile in pwsh to open the file in VS Code.

if ($env:TERM_PROGRAM -eq "vscode") {
 . "<InstallDir>\resources\app\out\vs\workbench\contrib\terminal\browser\media\shellIntegration.ps1"
}

It would be much nicer if this was encapsulated within the CLI, something like:

code shell-integration

We should also make sure these cases are covered:

  • Remote development extensions - injection works currently but manual install doesn't talk about the server paths
  • Regular SSH - it's not so easy to get the shell integration script to the remote machine

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionalityinsiders-releasedPatch has been released in VS Code Insiderson-testplanterminal-shell-integrationShell integration infrastructure, command decorations, etc.workbench-cliVS Code Command line issues

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions