From 57cc8c779cbbf1d51189284aff4cc6e4ed54ccd9 Mon Sep 17 00:00:00 2001 From: Muremwa Date: Wed, 2 Dec 2020 21:37:19 +0300 Subject: [PATCH] workspaceFolders bug fixed --- extension.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extension.js b/extension.js index 5139bd7..360e52c 100644 --- a/extension.js +++ b/extension.js @@ -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