mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-03 01:25:38 -05: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:
@@ -140,7 +140,8 @@ export class InputBox extends Widget {
|
||||
|
||||
if (this.options.validationOptions) {
|
||||
this.validation = this.options.validationOptions.validation;
|
||||
this.showValidationMessage = this.options.validationOptions.showMessage || false;
|
||||
// {{SQL CARBON EDIT}} Canidate for addition to vscode
|
||||
this.showValidationMessage = this.options.validationOptions.showMessage || true;
|
||||
}
|
||||
|
||||
this.element = dom.append(container, $('.monaco-inputbox.idle'));
|
||||
@@ -189,7 +190,13 @@ export class InputBox extends Widget {
|
||||
});
|
||||
}
|
||||
|
||||
setTimeout(() => this.updateMirror(), 0);
|
||||
setTimeout(() => {
|
||||
if (!this.input) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.updateMirror();
|
||||
}, 0);
|
||||
|
||||
// Support actions
|
||||
if (this.options.actions) {
|
||||
@@ -376,7 +383,8 @@ export class InputBox extends Widget {
|
||||
}
|
||||
|
||||
private _showMessage(): void {
|
||||
if (!this.contextViewProvider || !this.message) {
|
||||
// {{SQL CARBON EDIT}} Canidate for addition to vscode
|
||||
if (!this.contextViewProvider || !this.message || !this.showValidationMessage) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user