Skip to content

Commit 47c4843

Browse files
tumidopatbenatar
authored andcommitted
feat: Allow names in multiroot workspaces
Signed-off-by: Tomas Coufal <[email protected]>
1 parent 2385d9f commit 47c4843

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ export function workspaceRoots(): WorkspaceRoot[] {
237237
return vscode.workspace.workspaceFolders.map((folder) => {
238238
return {
239239
rootPath: folder.uri.fsPath,
240-
baseName: path.basename(folder.uri.fsPath),
240+
baseName: folder.name || path.basename(folder.uri.fsPath),
241241
multi
242242
};
243243
});

0 commit comments

Comments
 (0)