Skip to content

Commit 728bf2e

Browse files
committed
1 parent df8499d commit 728bf2e

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

src/vs/workbench/browser/layout.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff 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-

0 commit comments

Comments
 (0)