mirror of
https://github.com/hexedtech/codemp-vscode.git
synced 2025-02-18 16:28:44 +01:00
fix: show owned workspaces in the tree view
Some checks failed
test / build-test (push) Has been cancelled
Some checks failed
test / build-test (push) Has been cancelled
This commit is contained in:
parent
cd54f12126
commit
20b955ab14
1 changed files with 3 additions and 1 deletions
|
@ -150,7 +150,9 @@ export async function join(selected: vscode.TreeItem | undefined) {
|
||||||
|
|
||||||
export async function listWorkspaces() {
|
export async function listWorkspaces() {
|
||||||
if (client === null) return vscode.window.showWarningMessage("Connect first");
|
if (client === null) return vscode.window.showWarningMessage("Connect first");
|
||||||
workspace_list = await client.fetchJoinedWorkspaces();
|
let workspace_joined = await client.fetchJoinedWorkspaces();
|
||||||
|
let workspace_owned = await client.fetchOwnedWorkspaces();
|
||||||
|
workspace_list = workspace_owned.concat(workspace_joined);
|
||||||
provider.refresh();
|
provider.refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue