Skip to content

Commit

Permalink
Fixed: Can't open binary file
Browse files Browse the repository at this point in the history
SaekiRaku committed May 21, 2020
1 parent 0b1782b commit baffa3d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/commands.js
Original file line number Diff line number Diff line change
@@ -22,7 +22,9 @@ module.exports = function (context) {
/******* *******/

let OpenResourceUri = registerCommand('pin-up.open-resource-uri', function (resourceUri) {
vscode.window.showTextDocument(resourceUri);
vscode.window.showTextDocument(resourceUri).catch(() => {
executeCommand("vscode.open", resourceUri);
});
});


0 comments on commit baffa3d

Please sign in to comment.