Skip to content

Commit bdc5870

Browse files
feat: add option to remove menu entry
1 parent 2b62a57 commit bdc5870

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

package.json

+7-2
Original file line numberDiff line numberDiff line change
@@ -54,20 +54,25 @@
5454
"type": "string",
5555
"default": "default",
5656
"description": "If generateAuto is false, this template path will be used for each newly-generated .editorconfig file."
57+
},
58+
"editorconfig.showMenuEntry": {
59+
"type": "boolean",
60+
"default": true,
61+
"description": "Show the 'Generate .editorconfig' entry in the context menu of the Explorer view."
5762
}
5863
}
5964
},
6065
"menus": {
6166
"commandPalette": [
6267
{
6368
"command": "EditorConfig.generate",
64-
"when": "explorerResourceIsFolder"
69+
"when": "explorerResourceIsFolder && config.editorconfig.showMenuEntry"
6570
}
6671
],
6772
"explorer/context": [
6873
{
6974
"command": "EditorConfig.generate",
70-
"when": "explorerResourceIsFolder",
75+
"when": "explorerResourceIsFolder && config.editorconfig.showMenuEntry",
7176
"group": "EditorConfig@1"
7277
}
7378
]

0 commit comments

Comments
 (0)