提交 e7bc301b 编写于 作者: M Matt Bierner

When clicking on a link to a folder in markdown, reveal the folder

Fixes #91336
上级 b4b5b625
......@@ -66,6 +66,11 @@ export class OpenDocumentLinkCommand implements Command {
}
}
const stat = await vscode.workspace.fs.stat(resource);
if (stat.type === vscode.FileType.Directory) {
return vscode.commands.executeCommand('revealInExplorer', resource);
}
return vscode.workspace.openTextDocument(resource)
.then(document => vscode.window.showTextDocument(document, column))
.then(editor => this.tryRevealLine(editor, args.fragment));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册