Skip to content

Commit

Permalink
workspaceFolders bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
muremwa committed Dec 2, 2020
1 parent aafab81 commit 57cc8c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ function readAndDisplayUrls (projectPath) {
function activate() {

// vscode.workspace.rootPath is depracated, currently the extension will support only workspace folder 1, others to be supported in future.
const projectOne = vscode.workspace.workspaceFolders[0].uri.fsPath;
const projectOne = vscode.workspace.workspaceFolders? vscode.workspace.workspaceFolders[0].uri.fsPath: null;

if (projectOne) {
// read and display every url
Expand Down

0 comments on commit 57cc8c7

Please sign in to comment.