Skip to content

Commit 59c78fd

Browse files
fix(files): detect not existing files
1 parent 3a9dff9 commit 59c78fd

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "open-vscode",
33
"displayName": "vscode-open",
44
"description": "Open Visual Studio Code with a URL",
5-
"version": "1.1.5",
5+
"version": "1.1.6",
66
"publisher": "robertohuertasm",
77
"license": "MIT",
88
"author": {

src/opener.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export class Opener {
125125

126126
// for the moment, we'll check that the file exists (in case it has been deleted in the current branch)
127127
const files = await vscode.workspace.findFiles(this.file);
128-
if (files) {
128+
if (files.length) {
129129
await this.openFile(workspace, this.file);
130130
}
131131
}

0 commit comments

Comments
 (0)