vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Shell integration: Support `OSC 1337 ; CurrentDir=<cwd> ST` for updating cwd

Open Tyriar opened this issue 3 years ago • 1 comments

Part of #155639

We want to support other common shell integration sequences as fallbacks to the VS Code specific one (OSC 633 ; P ; Cwd=<Cwd> ST)

Code pointer:

https://github.com/microsoft/vscode/blob/4f0b05cd9872132d0d59282326ef7f6ef2d7af08/src/vs/platform/terminal/common/xterm/shellIntegrationAddon.ts#L338-L347

Tyriar avatar Aug 08 '22 21:08 Tyriar

@Tyriar I'm taking this.

babakks avatar Aug 10 '22 12:08 babakks

@babakks sounds good 👍

Tyriar avatar Aug 10 '22 13:08 Tyriar

@Tyriar I've just submitted the PR. You can check it anytime you want.

babakks avatar Aug 10 '22 14:08 babakks

@Tyriar can you add verification steps for this?

connor4312 avatar Aug 23 '22 21:08 connor4312

  • Disable shell integration
  • Open pwsh 7+
  • Run the following:
[Console]::Write("`e]633;A`a")
[Console]::Write("`e]633;B`a")
[Console]::Write("`e]633;C`a")
[Console]::Write("`e]633;D`a")
[Console]::Write("`e]1337;CurrentDir=/home/something`a")

It should change the terminal tab's description to something.

Tyriar avatar Aug 23 '22 22:08 Tyriar