提交 749eb1eb 编写于 作者: M Matt Bierner

Make sure we handle line number links correctly in preview

Fixes #51919
上级 ae7d3eb8
......@@ -63,7 +63,7 @@ export class OpenDocumentLinkCommand implements Command {
if (entry) {
return editor.revealRange(new vscode.Range(entry.line, 0, entry.line, 0), vscode.TextEditorRevealType.AtTop);
}
const lineNumberFragment = fragment.match(/^L(\d+)$/);
const lineNumberFragment = fragment.match(/^L(\d+)$/i);
if (lineNumberFragment) {
const line = +lineNumberFragment[1] - 1;
if (!isNaN(line)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册