Skip to content

Commit

Permalink
Provide better feedback when project isn't open and configuring proje…
Browse files Browse the repository at this point in the history
…ct. #38
  • Loading branch information
Chris Wood committed Mar 3, 2021
1 parent 1b4a5f5 commit 56f4cbd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/stubs/stubs-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ export default class StubsManager {
let settings = new SettingsWrapper();
let api = new ApiWrapper(settings);
let workspace = api.getProjectPath();

if (!workspace) {
vscode.window.showErrorMessage('You need to open your project folder in VS Code before you can configure it!');
return;
}

let vsc = path.join(workspace, '.vscode');

if (!await Utils.exists(vsc)) {
Expand Down

0 comments on commit 56f4cbd

Please sign in to comment.