提交 10a3aefc 编写于 作者: J João Moreno

fixes #100468

上级 03a93a10
...@@ -845,7 +845,7 @@ export class CommandCenter { ...@@ -845,7 +845,7 @@ export class CommandCenter {
try { try {
document = await workspace.openTextDocument(uri); document = await workspace.openTextDocument(uri);
} catch (error) { } catch (error) {
await commands.executeCommand<void>('vscode.open', uri, opts); await commands.executeCommand('vscode.open', uri, opts);
continue; continue;
} }
...@@ -858,7 +858,7 @@ export class CommandCenter { ...@@ -858,7 +858,7 @@ export class CommandCenter {
const editor = await window.showTextDocument(document, opts); const editor = await window.showTextDocument(document, opts);
editor.revealRange(previousVisibleRanges[0]); editor.revealRange(previousVisibleRanges[0]);
} else { } else {
await window.showTextDocument(document, opts); await commands.executeCommand('vscode.open', uri, opts);
} }
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册