mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-25 17:23:10 -05:00
connection contribution point (#880)
* init * finished compile erros * fixed all merge conflicts * fix dialog problems * formatting * fix opening dialog on first open * fix various problems with connectiondialog * formatting * fix tests * added connection contrib * formatting * formatting and adding capabilities to shutdown * fix connection buffering * formatting * fix tests
This commit is contained in:
@@ -38,7 +38,7 @@ export function mixin(destination: any, source: any, overwrite: boolean = true,
|
||||
if (overwrite) {
|
||||
if (Types.isObject(destination[key]) && Types.isObject(source[key])) {
|
||||
mixin(destination[key], source[key], overwrite, fn);
|
||||
} else if(fn) {
|
||||
} else if (fn) {
|
||||
destination[key] = fn(destination[key], source[key], overwrite);
|
||||
} else {
|
||||
destination[key] = source[key];
|
||||
@@ -50,4 +50,12 @@ export function mixin(destination: any, source: any, overwrite: boolean = true,
|
||||
});
|
||||
}
|
||||
return destination;
|
||||
}
|
||||
}
|
||||
|
||||
export function entries<T>(o: { [key: string]: T }): [string, T][] {
|
||||
return Object.entries(o);
|
||||
}
|
||||
|
||||
export function values<T>(o: { [key: string]: T }): T[] {
|
||||
return Object.values(o);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user