Skip to content

Commit

Permalink
feat: allow filtering in the nx project tree view
Browse files Browse the repository at this point in the history
  • Loading branch information
Cammisuli committed Mar 26, 2021
1 parent abdddbd commit eab4d76
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 20 deletions.
24 changes: 9 additions & 15 deletions apps/vscode/src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,8 @@
],
"view/item/context": [
{
"command": "nxConsole.revealInExplorer",
"when": "view == nxConsoleJson && viewItem == project",
"group": "inline"
},
{
"command": "nxConsole.runTask",
"when": "view == nxConsoleJson && viewItem == task",
"command": "nxConsole.editWorkspaceJson",
"when": "view == nxProjects",
"group": "inline"
},
{
Expand Down Expand Up @@ -250,21 +245,20 @@
"dark": "assets/refresh-dark.svg"
}
},
{
"command": "nxConsole.editWorkspaceJson",
"title": "Edit workspace definition",
"icon": "$(go-to-file)"
},
{
"command": "nxConsole.revealInExplorer",
"title": "Reveal in Explorer",
"icon": {
"light": "assets/folder-light.svg",
"dark": "assets/folder-dark.svg"
}
"icon": "$(folder)"
},
{
"command": "nxConsole.runTask",
"title": "Execute task",
"icon": {
"light": "assets/continue-light.svg",
"dark": "assets/continue-dark.svg"
}
"icon": "$(play)"
},
{
"category": "ng",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,6 @@ export class NxProjectTreeProvider extends AbstractTreeProvider<NxProjectTreeIte
? TreeItemCollapsibleState.Collapsed
: TreeItemCollapsibleState.None
);
item.command = {
title: 'Edit workspace definition',
command: 'nxConsole.editWorkspaceJson',
arguments: [item],
};
if (!workspaceJsonLabel.target) {
const projectDef = this.cliTaskProvider.getProjects()[
workspaceJsonLabel.project
Expand Down

0 comments on commit eab4d76

Please sign in to comment.