mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
Merge from vscode 0f73473c08055054f317c1c94502f7f39fdbb164 (#6892)
* Merge from vscode 0f73473c08055054f317c1c94502f7f39fdbb164 * fix tslinting
This commit is contained in:
@@ -617,10 +617,13 @@ export abstract class Layout extends Disposable implements IWorkbenchLayoutServi
|
||||
// To properly reset line numbers we need to read the configuration for each editor respecting it's uri.
|
||||
if (!lineNumbers && isCodeEditor(editor) && editor.hasModel()) {
|
||||
const model = editor.getModel();
|
||||
this.configurationService.getValue('editor.lineNumbers', { resource: model.uri });
|
||||
} else {
|
||||
editor.updateOptions({ lineNumbers });
|
||||
lineNumbers = this.configurationService.getValue('editor.lineNumbers', { resource: model.uri });
|
||||
}
|
||||
if (!lineNumbers) {
|
||||
lineNumbers = this.configurationService.getValue('editor.lineNumbers');
|
||||
}
|
||||
|
||||
editor.updateOptions({ lineNumbers });
|
||||
});
|
||||
|
||||
// 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
|
||||
this.disposed = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user