File tree 1 file changed +6
-6
lines changed
src/vs/workbench/services/editor/common
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -62,13 +62,13 @@ export async function openEditorWith(
62
62
// Prompt
63
63
const resourceExt = extname ( resource ) ;
64
64
65
- const items : ( IQuickPickItem & { handler : IOpenEditorOverrideHandler } ) [ ] = allEditorOverrides . map ( ( override ) => {
65
+ const items : ( IQuickPickItem & { handler : IOpenEditorOverrideHandler } ) [ ] = allEditorOverrides . map ( ( [ handler , entry ] ) => {
66
66
return {
67
- handler : override [ 0 ] ,
68
- id : override [ 1 ] . id ,
69
- label : override [ 1 ] . label ,
70
- description : override [ 1 ] . active ? nls . localize ( 'promptOpenWith.currentlyActive' , 'Currently Active' ) : undefined ,
71
- detail : override [ 1 ] . detail ,
67
+ handler : handler ,
68
+ id : entry . id ,
69
+ label : entry . label ,
70
+ description : entry . active ? nls . localize ( 'promptOpenWith.currentlyActive' , 'Currently Active' ) : undefined ,
71
+ detail : entry . detail ,
72
72
buttons : resourceExt ? [ {
73
73
iconClass : 'codicon-settings-gear' ,
74
74
tooltip : nls . localize ( 'promptOpenWith.setDefaultTooltip' , "Set as default editor for '{0}' files" , resourceExt )
You can’t perform that action at this time.
0 commit comments