mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-17 17:22:42 -05:00
remove some vscode differences (#12146)
This commit is contained in:
@@ -128,8 +128,8 @@ export class SelectBox extends vsSelectBox {
|
||||
|
||||
private static createOptions(options: SelectOptionItemSQL[] | string[] | ISelectOptionItem[]): SelectOptionItemSQL[] {
|
||||
let selectOptions: SelectOptionItemSQL[];
|
||||
if (Array.isArray<string>(options) && typeof (options[0]) === 'string') {
|
||||
selectOptions = options.map(o => {
|
||||
if (Array.isArray(options) && typeof (options[0]) === 'string') {
|
||||
selectOptions = (options as string[]).map(o => {
|
||||
return { text: o, value: o } as SelectOptionItemSQL;
|
||||
});
|
||||
} else { // Handle both SelectOptionItemSql and ISelectOptionItem
|
||||
|
||||
Reference in New Issue
Block a user