mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-03-18 11:03:18 -04:00
Refresh master with initial release/0.24 snapshot (#332)
* Initial port of release/0.24 source code * Fix additional headers * Fix a typo in launch.json
This commit is contained in:
@@ -308,7 +308,8 @@ export class View extends ViewEventHandler {
|
||||
}
|
||||
|
||||
private getEditorClassName() {
|
||||
return this._context.configuration.editor.editorClassName + ' ' + getThemeTypeSelector(this._context.theme.type);
|
||||
let focused = this._textAreaHandler.isFocused() ? ' focused' : '';
|
||||
return this._context.configuration.editor.editorClassName + ' ' + getThemeTypeSelector(this._context.theme.type) + focused;
|
||||
}
|
||||
|
||||
// --- begin event handlers
|
||||
@@ -323,7 +324,7 @@ export class View extends ViewEventHandler {
|
||||
return false;
|
||||
}
|
||||
public onFocusChanged(e: viewEvents.ViewFocusChangedEvent): boolean {
|
||||
this.domNode.toggleClassName('focused', e.isFocused);
|
||||
this.domNode.setClassName(this.getEditorClassName());
|
||||
if (e.isFocused) {
|
||||
this.outgoingEvents.emitViewFocusGained();
|
||||
} else {
|
||||
@@ -419,6 +420,11 @@ export class View extends ViewEventHandler {
|
||||
this._context.model
|
||||
);
|
||||
|
||||
if (this.contentWidgets.shouldRender()) {
|
||||
// Give the content widgets a chance to set their max width before a possible synchronous layout
|
||||
this.contentWidgets.onBeforeRender(viewportData);
|
||||
}
|
||||
|
||||
if (this.viewLines.shouldRender()) {
|
||||
this.viewLines.renderText(viewportData);
|
||||
this.viewLines.onDidRender();
|
||||
|
||||
Reference in New Issue
Block a user