Closed PeterJ504 closed 1 year ago
Thanks for reporting this.
As a possible workaround, can you try having the workspace file in the parent directory:
{ "folders": [ { "path": "./folder1" }, { "path": "./folder2" } ], "settings": {} }
Will look more into it when I am at my laptop
I get the same error.
When I try to reproduce your example, the issue I find is that the file is called file2.md
whereas the wikilink is [[file 2]]
. The name of the file and the wikilink do not match.
You should use [[file2]]
Or name your file file 2.md
I apologize for screwing up the the name when I typed it into the report but the even when I change the name as you suggest, the problem still occurs. In the screenshot and the arrow that I highlighted, you can clearly see that the name is being picked up incorrectly.
Do you want to reopen this report or shall I create a new one?
Can you please attach a zip file with a small reproducible example?
test.zip Go into folder1 and open the project using the workspace file. Open file1.md and then try to click on the links to file2 and file3.
(just realized the recording is missing the first part, where I click on the link to [[file2]]
, which works as well)
It looks like your are opening the project using the folder instead of using the workspace. If you open the project using the workspace file, then you will see the problem.
At the end of your gif, you show the preview of file1. Click on one of the links in that preview and it should give you the error.
Any news on this? Shall I open a new issue?
Yes please open a new one with a reproducible example and specific steps to recreate the problem
Describe the bug
When using workspaces, the wikilink is pointing to the incorrect directory. Instead of
c:\directory\filename.md
, it's pointing toc:\directory\directory\filename.md
.Small Reproducible Example
No response
Steps to Reproduce the Bug or Issue
Create test files
file1.md
and
file2.md
Display and links both work correctly.
Create workspace and add a new folder
Display works correctly but the link is broken.
Expected behavior
As a user, I expected the links to work the same way in a workspace,
Screenshots or Videos
Operating System Version
Windows
Visual Studio Code Version
Version: 1.81.1
Additional context
No response