Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 12 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@
},
"activationEvents": [
"onStartupFinished",
"onView:fileExplorer",
"onCommand:scope-to-this.scope",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are needed in some cases where you run the commands before VS Code is loaded or file explorer is opened. Please revert

"onCommand:scope-to-this.clear"
"onView:fileExplorer"
],
"contributes": {
"commands": [
Expand All @@ -52,18 +50,23 @@
}
],
"menus": {
"explorer/context": [
{
"command": "scope-to-this.scope",
"group": "navigation"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why changing the group?

}
],
"view/title": [
{
"command": "scope-to-this.clear",
"group": "navigation",
"when": "view == 'workbench.explorer.fileView' && scopeToThis.scoped"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I highly encourage to reduce unnecessary diffs. Since this is just a reorder, please revert

"when": "view == workbench.explorer.fileView && scopeToThis.scoped",
"group": "navigation"
}
],
"explorer/context": [
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment regarding reordring, please keep that in the same place

"commandPalette": [
{
"command": "scope-to-this.scope",
"group": "2_workspace@1",
"when": "activeViewlet == 'workbench.view.explorer' && explorerResourceIsFolder"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is mandatory, why removing it? Please revert

"command": "scope-to-this.clear",
"when": "scopeToThis.scoped"
}
]
}
Expand Down