You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Markdown preview support the UNC path files. - #26710
I believe we need fsPath in this case because it normalize path on windows.
If the preview is not working for unc paths, first try debugging into provideTextDocumentContent in previewContentProvider.ts to see if the document is loading properly or not
Why we need the normalize path? For the markdown extensions? Or for the Uri internal behavior?
provideTextDocumentContent is not called. Because Error occurred at URI._validate in process of getMarkdownUri before it.
The Error is caused by UTC path is regarded as wrong URI. So, this error has been raised on other TextDocument events too.
We need to normalize the path for scroll synchronization. I believe this normalization already happens downstream in provideTextDocumentContent, so let's see if this change causes any regressions. It should be in the next insiders build
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
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.
Related to #26464.
The built-in markdown extensions cannot preview the network files.
In my case, the network file path is UNC path(starts with
\\).This tiny changes affected to be able to preview even the UNC path files.