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
38
package.json
38
package.json
|
@ -15,18 +15,18 @@
|
||||||
"theme": "dark"
|
"theme": "dark"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"codemp",
|
"codemp",
|
||||||
"collaborative",
|
"collaborative",
|
||||||
"editing",
|
"editing",
|
||||||
"multiplatform",
|
"multiplatform",
|
||||||
"live",
|
"live",
|
||||||
"development"
|
"development"
|
||||||
],
|
],
|
||||||
"categories": [
|
"categories": [
|
||||||
"SCM Providers",
|
"SCM Providers",
|
||||||
"Visualization",
|
"Visualization",
|
||||||
"Programming Languages",
|
"Programming Languages",
|
||||||
"Other"
|
"Other"
|
||||||
],
|
],
|
||||||
"activationEvents": [
|
"activationEvents": [
|
||||||
"onCommand:extension.openMyExtension"
|
"onCommand:extension.openMyExtension"
|
||||||
|
@ -34,13 +34,13 @@
|
||||||
"main": "./out/extension.js",
|
"main": "./out/extension.js",
|
||||||
"contributes": {
|
"contributes": {
|
||||||
"viewsContainers": {
|
"viewsContainers": {
|
||||||
"activitybar": [
|
"activitybar": [
|
||||||
{
|
{
|
||||||
"id": "codemp-tree-container",
|
"id": "codemp-tree-container",
|
||||||
"title": "codemp",
|
"title": "codemp",
|
||||||
"icon": "resources/logo.svg"
|
"icon": "resources/logo.svg"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"viewsWelcome": [
|
"viewsWelcome": [
|
||||||
{
|
{
|
||||||
|
@ -74,7 +74,7 @@
|
||||||
"view/item/context": [
|
"view/item/context": [
|
||||||
{
|
{
|
||||||
"command": "codemp.join",
|
"command": "codemp.join",
|
||||||
"when": "view == codemp-tree-view && viewItem == workspace",
|
"when": "view == codemp-tree-view && viewItem == workspace_active",
|
||||||
"group": "inline"
|
"group": "inline"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -228,4 +228,4 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"codemp": "^0.0.10"
|
"codemp": "^0.0.10"
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -62,7 +62,7 @@ export class CodempTreeProvider implements vscode.TreeDataProvider<CodempTreeIte
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
let items = workspace_list.map((x) =>
|
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("", Type.Placeholder, false));
|
||||||
items.push(new CodempTreeItem("<Users>", Type.UserList, true));
|
items.push(new CodempTreeItem("<Users>", Type.UserList, true));
|
||||||
|
|
Loading…
Reference in a new issue