Skip to content

Commit

Permalink
fix: sourceControl.changesLeftClick setting to 'Open' now works (#961)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnstonCode committed Jun 7, 2020
1 parent 278f0fc commit f912d65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/openFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ export class OpenFile extends Command {
const activeTextEditor = window.activeTextEditor;
for (const uri of uris) {
if (
(await exists(uri.fsPath)) &&
(await stat(uri.fsPath)).isDirectory()
!uri ||
((await exists(uri.fsPath)) && (await stat(uri.fsPath)).isDirectory())
) {
continue;
}
Expand Down

0 comments on commit f912d65

Please sign in to comment.