mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-04 07:15:54 +01:00
Fix Markdown Scroll Sync For Windows Path Casing (#20064)
**Bug** Scroll sync not working for some users on windows **Fix** Root cause seems to be that windows drive/path cases can sometimes differ between preview and editor document. Adds a equality check based on `fsPath` as well
This commit is contained in:
@@ -117,7 +117,7 @@ export class MDDocumentContentProvider implements vscode.TextDocumentContentProv
|
||||
${body}
|
||||
<script>
|
||||
window.initialData = {
|
||||
source: "${encodeURIComponent(sourceUri.scheme + '://' + sourceUri.path)}",
|
||||
source: "${encodeURIComponent(sourceUri.toString(true))}",
|
||||
line: ${initialLine},
|
||||
scrollPreviewWithEditorSelection: ${!!markdownConfig.get('preview.scrollPreviewWithEditorSelection', true)},
|
||||
scrollEditorWithPreview: ${!!markdownConfig.get('preview.scrollEditorWithPreview', true)},
|
||||
|
||||
Reference in New Issue
Block a user