Skip to content

Commit d1cd816

Browse files
committed
Fixes microsoft#95912: Do not show squiggles for unknown commands
1 parent 81fb0cf commit d1cd816

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

src/vs/workbench/services/keybinding/browser/keybindingService.ts

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -709,10 +709,17 @@ let schema: IJSONSchema = {
709709
'description': nls.localize('keybindings.json.key', "Key or key sequence (separated by space)"),
710710
},
711711
'command': {
712-
'type': 'string',
713-
'enum': commandsEnum,
714-
'enumDescriptions': <any>commandsEnumDescriptions,
715-
'description': nls.localize('keybindings.json.command', "Name of the command to execute"),
712+
'anyOf': [
713+
{
714+
'type': 'string',
715+
'enum': commandsEnum,
716+
'enumDescriptions': <any>commandsEnumDescriptions,
717+
'description': nls.localize('keybindings.json.command', "Name of the command to execute"),
718+
},
719+
{
720+
'type': 'string'
721+
}
722+
]
716723
},
717724
'when': {
718725
'type': 'string',

0 commit comments

Comments
 (0)