You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
collector.error(localize('optstring',"property `{0}` can be omitted or must be of type `string`",'precondition'));
80
+
returnfalse;
81
+
}
77
82
if(item.when&&typeofitem.when!=='string'){
78
83
collector.error(localize('optstring',"property `{0}` can be omitted or must be of type `string`",'when'));
79
84
returnfalse;
@@ -98,6 +103,10 @@ namespace schema {
98
103
description: localize('vscode.extension.contributes.menuItem.alt','Identifier of an alternative command to execute. The command must be declared in the \'commands\'-section'),
99
104
type: 'string'
100
105
},
106
+
precondition: {
107
+
description: localize('vscode.extension.contributes.menuItem.precondition','Condition which must be true to enable this item'),
108
+
type: 'string'
109
+
},
101
110
when: {
102
111
description: localize('vscode.extension.contributes.menuItem.when','Condition which must be true to show this item'),
0 commit comments