fix: show owned workspaces in the tree view
Some checks are pending
test / build-test (push) Waiting to run

This commit is contained in:
frelodev 2024-11-21 17:17:43 +01:00
parent cd54f12126
commit 20b955ab14

View file

@ -150,7 +150,9 @@ export async function join(selected: vscode.TreeItem | undefined) {
export async function listWorkspaces() {
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();
}