File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 54
54
"type" : " string" ,
55
55
"default" : " default" ,
56
56
"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."
57
62
}
58
63
}
59
64
},
60
65
"menus" : {
61
66
"commandPalette" : [
62
67
{
63
68
"command" : " EditorConfig.generate" ,
64
- "when" : " explorerResourceIsFolder"
69
+ "when" : " explorerResourceIsFolder && config.editorconfig.showMenuEntry "
65
70
}
66
71
],
67
72
"explorer/context" : [
68
73
{
69
74
"command" : " EditorConfig.generate" ,
70
- "when" : " explorerResourceIsFolder" ,
75
+ "when" : " explorerResourceIsFolder && config.editorconfig.showMenuEntry " ,
71
76
"group" : " EditorConfig@1"
72
77
}
73
78
]
You can’t perform that action at this time.
0 commit comments