mirror of
https://github.com/hexedtech/codemp-vscode.git
synced 2024-11-25 08:54:48 +01:00
feat: don't show join button on viewtree if you already joined another workspace
This commit is contained in:
parent
e4b740f6d4
commit
9fd0b7e732
2 changed files with 20 additions and 20 deletions
36
package.json
36
package.json
|
@ -15,18 +15,18 @@
|
|||
"theme": "dark"
|
||||
},
|
||||
"keywords": [
|
||||
"codemp",
|
||||
"collaborative",
|
||||
"editing",
|
||||
"multiplatform",
|
||||
"live",
|
||||
"development"
|
||||
"codemp",
|
||||
"collaborative",
|
||||
"editing",
|
||||
"multiplatform",
|
||||
"live",
|
||||
"development"
|
||||
],
|
||||
"categories": [
|
||||
"SCM Providers",
|
||||
"Visualization",
|
||||
"Programming Languages",
|
||||
"Other"
|
||||
"SCM Providers",
|
||||
"Visualization",
|
||||
"Programming Languages",
|
||||
"Other"
|
||||
],
|
||||
"activationEvents": [
|
||||
"onCommand:extension.openMyExtension"
|
||||
|
@ -34,13 +34,13 @@
|
|||
"main": "./out/extension.js",
|
||||
"contributes": {
|
||||
"viewsContainers": {
|
||||
"activitybar": [
|
||||
{
|
||||
"id": "codemp-tree-container",
|
||||
"title": "codemp",
|
||||
"icon": "resources/logo.svg"
|
||||
}
|
||||
]
|
||||
"activitybar": [
|
||||
{
|
||||
"id": "codemp-tree-container",
|
||||
"title": "codemp",
|
||||
"icon": "resources/logo.svg"
|
||||
}
|
||||
]
|
||||
},
|
||||
"viewsWelcome": [
|
||||
{
|
||||
|
@ -74,7 +74,7 @@
|
|||
"view/item/context": [
|
||||
{
|
||||
"command": "codemp.join",
|
||||
"when": "view == codemp-tree-view && viewItem == workspace",
|
||||
"when": "view == codemp-tree-view && viewItem == workspace_active",
|
||||
"group": "inline"
|
||||
},
|
||||
{
|
||||
|
|
|
@ -62,7 +62,7 @@ export class CodempTreeProvider implements vscode.TreeDataProvider<CodempTreeIte
|
|||
return out;
|
||||
}
|
||||
let items = workspace_list.map((x) =>
|
||||
new CodempTreeItem(x, Type.Workspace, true, workspace !== null && workspace.id() == x)
|
||||
new CodempTreeItem(x, Type.Workspace, true, workspace === null)
|
||||
);
|
||||
items.push(new CodempTreeItem("", Type.Placeholder, false));
|
||||
items.push(new CodempTreeItem("<Users>", Type.UserList, true));
|
||||
|
|
Loading…
Reference in a new issue