OSC8-Adoption icon indicating copy to clipboard operation
OSC8-Adoption copied to clipboard

VS Code now supports more protocols

Open flying-sheep opened this issue 1 year ago • 4 comments

By default, that’s now

[
	'file',
	'http', 'https',
	'mailto',
	'vscode', 'vscode-insiders',
]

And it’s customizable. That makes OSC 8 usable in the VS Code terminal.

See https://github.com/microsoft/vscode/issues/176812

flying-sheep avatar May 06 '24 12:05 flying-sheep

@flying-sheep I'm not sure how (or if) this should be integrated into the list. From my reading of vscode#176812, it would appear that VS Code did support OSC 8, but it hitherto only recognised URLs that used http or https protocols. That still technically qualifies as "supporting OSC 8 escape sequences".

Alhadis avatar May 07 '24 14:05 Alhadis

I don’t think it’s in the list yet, so I’d say now is a good time to add it.

flying-sheep avatar May 07 '24 15:05 flying-sheep

@flying-sheep Do you know when VS Code first introduced support for OSC 8 hyperlinks? (Configurable or not).

Alhadis avatar May 07 '24 15:05 Alhadis

For what it's worth, I thought I should note that VS Code embeds xterm.js (which is already listed) for its terminal. Hence, I would expect it (VS Code Terminal) to be listed underneath xterm.js, just like with the VTE-based emulators.

As for when Hyperlinks support was added, see here and for extra info:

  • https://github.com/microsoft/vscode/issues/39278
  • https://github.com/microsoft/vscode/pull/159578
  • https://github.com/jamestalmage/supports-hyperlinks/pull/17

AnonymouX47 avatar May 07 '24 15:05 AnonymouX47

Alright, added. I'm unsure how else to proceed regarding protocols, so I'm simply honouring the precedent set in jamestalmage/supports-hyperlinks#17 by treating VS Code v1.72.0 as when hyperlink support was "officially" introduced. 🤷

Alhadis avatar Sep 06 '24 08:09 Alhadis