Skip to content

Commit

Permalink
feat: add option to remove menu entry
Browse files Browse the repository at this point in the history
  • Loading branch information
SunsetTechuila committed Feb 3, 2025
1 parent 2b62a57 commit bdc5870
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,20 +54,25 @@
"type": "string",
"default": "default",
"description": "If generateAuto is false, this template path will be used for each newly-generated .editorconfig file."
},
"editorconfig.showMenuEntry": {
"type": "boolean",
"default": true,
"description": "Show the 'Generate .editorconfig' entry in the context menu of the Explorer view."
}
}
},
"menus": {
"commandPalette": [
{
"command": "EditorConfig.generate",
"when": "explorerResourceIsFolder"
"when": "explorerResourceIsFolder && config.editorconfig.showMenuEntry"
}
],
"explorer/context": [
{
"command": "EditorConfig.generate",
"when": "explorerResourceIsFolder",
"when": "explorerResourceIsFolder && config.editorconfig.showMenuEntry",
"group": "EditorConfig@1"
}
]
Expand Down

0 comments on commit bdc5870

Please sign in to comment.