mirror of
https://github.com/hexedtech/codemp-vscode.git
synced 2024-11-22 15:34:49 +01:00
fix: properly shows the error if you didn't open a workspace folder
This commit is contained in:
parent
57fcc9ce90
commit
e4b740f6d4
1 changed files with 1 additions and 1 deletions
|
@ -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" });
|
workspace_id = await vscode.window.showInputBox({ prompt: "name of workspace to attach to" });
|
||||||
}
|
}
|
||||||
if (!workspace_id) return; // user cancelled with ESC
|
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");
|
vscode.window.showErrorMessage("Open a Workspace folder first");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue