File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
src/vs/workbench/contrib/files/browser Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -628,29 +628,32 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
628
628
args : [
629
629
{
630
630
isOptional : true ,
631
- name : 'viewType ' ,
632
- description : 'The editor view type' ,
631
+ name : 'New Untitled File args ' ,
632
+ description : 'The editor view type and language ID if known ' ,
633
633
schema : {
634
634
'type' : 'object' ,
635
- 'required' : [ 'viewType' ] ,
636
635
'properties' : {
637
636
'viewType' : {
638
637
'type' : 'string'
638
+ } ,
639
+ 'languageId' : {
640
+ 'type' : 'string'
639
641
}
640
642
}
641
643
}
642
644
}
643
645
]
644
646
} ,
645
- handler : async ( accessor , args ?: { viewType : string } ) => {
647
+ handler : async ( accessor , args ?: { languageId ?: string ; viewType ? : string } ) => {
646
648
const editorService = accessor . get ( IEditorService ) ;
647
649
648
650
await editorService . openEditor ( {
649
651
resource : undefined ,
650
652
options : {
651
653
override : args ?. viewType ,
652
654
pinned : true
653
- }
655
+ } ,
656
+ languageId : args ?. languageId ,
654
657
} ) ;
655
658
}
656
659
} ) ;
You can’t perform that action at this time.
0 commit comments