Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude workspace when linking to a file #1372

Merged

Conversation

pderaaij
Copy link
Collaborator

This fixes #1332 and #1277.

vscode.workspace.asRelativePath needs to be told to exclude the workspace, as we already have in the resource location.

@pderaaij pderaaij force-pushed the bug/workspaces-preview-link branch from 1f46eef to 2393a8a Compare July 19, 2024 19:54
@pderaaij pderaaij added the bug Something isn't working label Jul 19, 2024
@riccardoferretti
Copy link
Collaborator

Thanks @pderaaij - a couple of things:

  • can you add a test?
  • does this work well when NOT in a workspace?
  • is this the only place where such change would be required?

@pderaaij
Copy link
Collaborator Author

Will add a test. Focussed on #1290 first.

@pderaaij
Copy link
Collaborator Author

@riccardoferretti I am bit lost on the best way to add a test for this situation. The end-2-end test suite runs a single-root workspace. I can't see a way how to manipulate this on runtime. The alternative is to create an end-2-end test suite for a multi-root workspace, but that might be a bit too much. Do you have any thoughts on how to handle this?

Copy link
Collaborator

@riccardoferretti riccardoferretti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair point, manual testing will do for now

@riccardoferretti riccardoferretti merged commit 13a340e into foambubble:master Aug 22, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wikilink are not working in preview mode when using workspace
2 participants