提交 3a19ca4c 编写于 作者: D Daniel Imms

Correctly ensure terminal links are not dirs

Fixes #70229
上级 50ee8c5f
......@@ -289,8 +289,8 @@ export class TerminalLinkHandler {
}
// Ensure the file exists on disk, so an editor can be opened after clicking it
return this._fileService.existsFile(URI.file(linkUrl)).then(isFile => {
if (!isFile) {
return this._fileService.resolveFile(URI.file(linkUrl)).then(stat => {
if (stat.isDirectory) {
return null;
}
return preprocessedLink;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册