mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
fix array access issues with map iterators
This commit is contained in:
@@ -284,7 +284,7 @@ export class TabbedPanel extends Disposable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!this._shownTabId && this._tabMap.size > 0) {
|
if (!this._shownTabId && this._tabMap.size > 0) {
|
||||||
this.showTab(this._tabMap.values()[0].tab.identifier);
|
this.showTab(this._tabMap.values().next().value.tab.identifier);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -292,7 +292,7 @@ export class AccountDialog extends Modal {
|
|||||||
this._splitViewContainer.hidden = false;
|
this._splitViewContainer.hidden = false;
|
||||||
this._noaccountViewContainer.hidden = true;
|
this._noaccountViewContainer.hidden = true;
|
||||||
if (Iterable.consume(this._providerViewsMap.values()).length > 0) {
|
if (Iterable.consume(this._providerViewsMap.values()).length > 0) {
|
||||||
const firstView = this._providerViewsMap.values()[0];
|
const firstView = this._providerViewsMap.values().next().value;
|
||||||
if (firstView instanceof AccountPanel) {
|
if (firstView instanceof AccountPanel) {
|
||||||
firstView.setSelection([0]);
|
firstView.setSelection([0]);
|
||||||
firstView.focus();
|
firstView.focus();
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ export async function getResultsString(provider: IGridDataProvider, selection: S
|
|||||||
|
|
||||||
let copyString = '';
|
let copyString = '';
|
||||||
if (includeHeaders) {
|
if (includeHeaders) {
|
||||||
copyString = [...headers.values()].join('\t').concat(eol);
|
copyString = Array.from(headers.values()).join('\t').concat(eol);
|
||||||
}
|
}
|
||||||
|
|
||||||
const rowKeys = [...headers.keys()];
|
const rowKeys = [...headers.keys()];
|
||||||
|
|||||||
Reference in New Issue
Block a user