createWorkspacePaths doesn't check if vscode.workspace.workspaceFolders is undefined or not

Issue #134 new
Jose Leon created an issue

In this function, vscode.workspace.workspaceFolders can be undefined if no workspace is open. Apart from that, vscode.workspace.textDocuments can be empty, so a proper checking should be done.

At some specific conditions, hard to reproduce, the extension cannot be activated because of this.

Comments (1)

  1. Christopher Wosinski repo owner

    Thanks for analyzing this issue. Maybe the extension needs to be activated differently. I need to check first.

  2. Log in to comment