Skip to content

Commit

Permalink
feat: Allow names in multiroot workspaces
Browse files Browse the repository at this point in the history
Signed-off-by: Tomas Coufal <[email protected]>
  • Loading branch information
tumido authored and patbenatar committed Jul 25, 2021
1 parent 2385d9f commit 47c4843
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ export function workspaceRoots(): WorkspaceRoot[] {
return vscode.workspace.workspaceFolders.map((folder) => {
return {
rootPath: folder.uri.fsPath,
baseName: path.basename(folder.uri.fsPath),
baseName: folder.name || path.basename(folder.uri.fsPath),
multi
};
});
Expand Down

0 comments on commit 47c4843

Please sign in to comment.