File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
src/vs/workbench/services/editor/browser Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -373,7 +373,7 @@ export class EditorOverrideService extends Disposable implements IEditorOverride
373
373
const currentEditor = firstOrDefault ( group . findEditors ( resource ) ) ;
374
374
// If untitled, we want all contribution points
375
375
let contributionPoints = resource . scheme === Schemas . untitled ? distinct ( flatten ( Array . from ( this . _contributionPoints . values ( ) ) ) , ( contrib ) => contrib . editorInfo . id ) : this . findMatchingContributions ( resource ) ;
376
- const defaultSetting = this . getAssociationsForResource ( resource ) [ 0 ] . viewType ;
376
+ const defaultSetting = this . getAssociationsForResource ( resource ) [ 0 ] ? .viewType ;
377
377
// Not the most efficient way to do this, but we want to ensure the text editor is at the top of the quickpick
378
378
contributionPoints = contributionPoints . sort ( ( a , b ) => {
379
379
if ( a . editorInfo . id === DEFAULT_EDITOR_ASSOCIATION . id ) {
You can’t perform that action at this time.
0 commit comments