mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-14 09:59:47 -05:00
Add support for Encrypt=Strict for TDS 8.0 connections with SQL Server 2022 (#21256)
This commit is contained in:
@@ -7,6 +7,7 @@ import { InputBox as vsInputBox, IInputOptions as vsIInputBoxOptions, IInputBoxS
|
||||
import { IContextViewProvider } from 'vs/base/browser/ui/contextview/contextview';
|
||||
import { Color } from 'vs/base/common/color';
|
||||
import { Event, Emitter } from 'vs/base/common/event';
|
||||
import { AdsWidget } from 'sql/base/browser/ui/adsWidget';
|
||||
|
||||
export interface OnLoseFocusParams {
|
||||
value: string;
|
||||
@@ -29,7 +30,7 @@ export interface IInputOptions extends vsIInputBoxOptions {
|
||||
ariaDescription?: string;
|
||||
}
|
||||
|
||||
export class InputBox extends vsInputBox {
|
||||
export class InputBox extends vsInputBox implements AdsWidget {
|
||||
private enabledInputBackground?: Color;
|
||||
private enabledInputForeground?: Color;
|
||||
private enabledInputBorder?: Color;
|
||||
@@ -48,7 +49,7 @@ export class InputBox extends vsInputBox {
|
||||
private _isTextAreaInput = false;
|
||||
private _hideErrors = false;
|
||||
|
||||
constructor(container: HTMLElement, contextViewProvider: IContextViewProvider, private _sqlOptions?: IInputOptions) {
|
||||
constructor(container: HTMLElement, contextViewProvider: IContextViewProvider, private _sqlOptions?: IInputOptions, id?: string) {
|
||||
super(container, contextViewProvider, _sqlOptions);
|
||||
this.enabledInputBackground = this.inputBackground;
|
||||
this.enabledInputForeground = this.inputForeground;
|
||||
@@ -74,6 +75,7 @@ export class InputBox extends vsInputBox {
|
||||
if (this._sqlOptions.ariaDescription) {
|
||||
this.inputElement.setAttribute('aria-description', this._sqlOptions.ariaDescription);
|
||||
}
|
||||
this.inputElement.id = id;
|
||||
}
|
||||
|
||||
public override style(styles: IInputBoxStyles): void {
|
||||
@@ -197,4 +199,8 @@ export class InputBox extends vsInputBox {
|
||||
this._lastLoseFocusValue = newValue;
|
||||
super.value = newValue;
|
||||
}
|
||||
|
||||
public get id(): string {
|
||||
return this.input.id;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user