File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -617,10 +617,13 @@ export abstract class Layout extends Disposable implements IWorkbenchLayoutServi
617617 // To properly reset line numbers we need to read the configuration for each editor respecting it's uri.
618618 if ( ! lineNumbers && isCodeEditor ( editor ) && editor . hasModel ( ) ) {
619619 const model = editor . getModel ( ) ;
620- this . configurationService . getValue ( 'editor.lineNumbers' , { resource : model . uri } ) ;
621- } else {
622- editor . updateOptions ( { lineNumbers } ) ;
620+ lineNumbers = this . configurationService . getValue ( 'editor.lineNumbers' , { resource : model . uri } ) ;
621+ }
622+ if ( ! lineNumbers ) {
623+ lineNumbers = this . configurationService . getValue ( 'editor.lineNumbers' ) ;
623624 }
625+
626+ editor . updateOptions ( { lineNumbers } ) ;
624627 } ) ;
625628
626629 // Check if zen mode transitioned to full screen and if now we are out of zen mode
@@ -1292,4 +1295,3 @@ export abstract class Layout extends Disposable implements IWorkbenchLayoutServi
12921295 this . disposed = true ;
12931296 }
12941297}
1295-
You can’t perform that action at this time.
0 commit comments