From 6f5f7574798517cf61ea10f41d9a49fd10da74ad Mon Sep 17 00:00:00 2001 From: Matt Bierner Date: Mon, 26 Feb 2018 13:38:18 -0800 Subject: [PATCH] Use fspath for reveal line to fix drive letter case differences --- extensions/markdown/src/commands/revealLine.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/markdown/src/commands/revealLine.ts b/extensions/markdown/src/commands/revealLine.ts index 7587f7763ed..293954f7439 100644 --- a/extensions/markdown/src/commands/revealLine.ts +++ b/extensions/markdown/src/commands/revealLine.ts @@ -12,7 +12,7 @@ export class RevealLineCommand implements Command { public readonly id = '_markdown.revealLine'; public constructor( - private logger: Logger + private readonly logger: Logger ) { } public execute(uri: string, line: number) { @@ -20,7 +20,7 @@ export class RevealLineCommand implements Command { this.logger.log('revealLine', { uri, sourceUri: sourceUri.toString(), line }); vscode.window.visibleTextEditors - .filter(editor => isMarkdownFile(editor.document) && editor.document.uri.toString() === sourceUri.toString()) + .filter(editor => isMarkdownFile(editor.document) && editor.document.uri.fsPath === sourceUri.fsPath) .forEach(editor => { const sourceLine = Math.floor(line); const fraction = line - sourceLine;