ok button targetted fix (#9095)

This commit is contained in:
Amir Omidi
2020-02-07 17:17:58 -08:00
committed by GitHub
parent ba66305bb5
commit 6770bf877e
4 changed files with 48 additions and 17 deletions

3
src/vs/vscode.d.ts vendored
View File

@@ -7940,6 +7940,9 @@ declare module 'vscode' {
* An event signaling when the selected items have changed.
*/
readonly onDidChangeSelection: Event<T[]>;
// {SQL CARBON EDIT} Temporary change to allow setting the behavior of the QuickPick
ok: boolean;
}
/**

View File

@@ -261,9 +261,22 @@ class ExtHostQuickInput implements QuickInput {
this._onDidChangeValueEmitter
];
constructor(protected _proxy: MainThreadQuickOpenShape, protected _extensionId: ExtensionIdentifier, private _onDidDispose: () => void) {
}
// {SQL CARBON EDIT} START Temporary change for ok button visibility
private _ok = false;
get ok() {
return this._ok;
}
set ok(ok: boolean) {
this._ok = ok;
this.update({ ok });
}
// {SQL CARBON EDIT} END Temporary change for ok button visibility
get title() {
return this._title;
}