Skip to content

Commit

Permalink
solved the edge case #160
Browse files Browse the repository at this point in the history
  • Loading branch information
ritwickdey committed Jun 17, 2018
1 parent 961f37a commit 49d3e47
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/appModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ export class AppModel {
return this.showPopUpMsg(`Open a folder or workspace... (File -> Open Folder)`, true);
}

if (!workspace.workspaceFolders.length) {
return this.showPopUpMsg(`You've not added any folder in the workspace`, true);
}

const workspacePath = await workspaceResolver(pathUri);

if (!this.isCorrectWorkspace(workspacePath)) return;
Expand Down

0 comments on commit 49d3e47

Please sign in to comment.