OSC 8 hyperlink should open VS Code file explorer if inside cwd#265984
Merged
anthonykim1 merged 14 commits intomainfrom Sep 29, 2025
Merged
OSC 8 hyperlink should open VS Code file explorer if inside cwd#265984anthonykim1 merged 14 commits intomainfrom
anthonykim1 merged 14 commits intomainfrom
Conversation
… current workspace
anthonykim1
commented
Sep 10, 2025
src/vs/workbench/contrib/terminalContrib/links/browser/terminalLinkOpeners.ts
Outdated
Show resolved
Hide resolved
anthonykim1
commented
Sep 10, 2025
src/vs/workbench/contrib/terminalContrib/links/browser/terminalLinkOpeners.ts
Show resolved
Hide resolved
Contributor
Author
|
Should consider: before requesting for review. |
Contributor
Author
|
Bit surprised that (below with beautiful delegation) only gets called when clicking on file links itself, but not the OSC 8 hyperlinks.. Iinstead it always go through so then I tried to follow suggestion and re-route/deletegate into proper link type inside the URL open. @Tyriar Curious what you think here, I feel like there might be more smarter way to do this. this._openers is Map<TerminalLinkType, ITerminalLinkOpener> and I feel forced to pass in some link type.
I could check the link type in |
Tyriar
requested changes
Sep 11, 2025
src/vs/workbench/contrib/terminalContrib/links/browser/terminalLinkManager.ts
Outdated
Show resolved
Hide resolved
src/vs/workbench/contrib/terminalContrib/links/browser/terminalLocalLinkDetector.ts
Outdated
Show resolved
Hide resolved
src/vs/workbench/contrib/terminalContrib/links/browser/terminalLinkOpeners.ts
Outdated
Show resolved
Hide resolved
src/vs/workbench/contrib/terminalContrib/links/browser/terminalLocalLinkDetector.ts
Outdated
Show resolved
Hide resolved
Tyriar
previously requested changes
Sep 12, 2025
src/vs/workbench/contrib/terminalContrib/links/browser/terminalLinkOpeners.ts
Outdated
Show resolved
Hide resolved
src/vs/workbench/contrib/terminalContrib/links/browser/terminalLinkOpeners.ts
Show resolved
Hide resolved
rebornix
approved these changes
Sep 29, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves: #229374
Current state, clicking on OSC 8 hyperlinked folder should navigate to VS Code file explorer rather than native file explorer.
But want to confirm what we want for #229374 (comment)