mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-28 12:33:35 +01:00
fixes #100468
This commit is contained in:
@@ -845,7 +845,7 @@ export class CommandCenter {
|
||||
try {
|
||||
document = await workspace.openTextDocument(uri);
|
||||
} catch (error) {
|
||||
await commands.executeCommand<void>('vscode.open', uri, opts);
|
||||
await commands.executeCommand('vscode.open', uri, opts);
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -858,7 +858,7 @@ export class CommandCenter {
|
||||
const editor = await window.showTextDocument(document, opts);
|
||||
editor.revealRange(previousVisibleRanges[0]);
|
||||
} else {
|
||||
await window.showTextDocument(document, opts);
|
||||
await commands.executeCommand('vscode.open', uri, opts);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user