Skip to content

support links that begin with a root folder#125615

Merged
meganrogge merged 2 commits into
microsoft:mainfrom
mghalayini:fix-125260
Jun 7, 2021
Merged

support links that begin with a root folder#125615
meganrogge merged 2 commits into
microsoft:mainfrom
mghalayini:fix-125260

Conversation

@mghalayini

Copy link
Copy Markdown
Contributor

This PR fixes #125260. I have assumed that the user is working in a multi-root workspace for generality. If any of the names of the root folders in the workspace matches a prefix of the link activated in the integrated terminal, we erase that prefix and proceed with the search. This was an issue before, since links only work relative to the root folder, which means that links that begin with the root folder do not actually work.

Before:
b4

After:
after

@Tyriar Tyriar added this to the May 2021 milestone Jun 7, 2021
@meganrogge meganrogge modified the milestones: May 2021, June 2021 Jun 7, 2021
@meganrogge

Copy link
Copy Markdown
Collaborator

Works well. Thanks for the gifs and the time you invested 👍🏼

@meganrogge meganrogge enabled auto-merge (squash) June 7, 2021 21:43
@meganrogge meganrogge merged commit 1d04a82 into microsoft:main Jun 7, 2021
@mghalayini mghalayini deleted the fix-125260 branch June 8, 2021 06:28
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

locate file:$line:$col in IntegratedTerminal

3 participants