fix: properly shows the error if you didn't open a workspace folder

This commit is contained in:
frelodev 2024-09-18 16:14:03 +02:00
parent 57fcc9ce90
commit e4b740f6d4

View file

@ -53,7 +53,7 @@ export async function join(selected: vscode.TreeItem | undefined) {
workspace_id = await vscode.window.showInputBox({ prompt: "name of workspace to attach to" });
}
if (!workspace_id) return; // user cancelled with ESC
if(vscode.workspace.getWorkspaceFolder === undefined) {
if(vscode.workspace.workspaceFolders === undefined) {
vscode.window.showErrorMessage("Open a Workspace folder first");
return;
}