mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-22 17:22:59 -05:00
fix table designer issues (#18988)
* fix table designer issues * commit change on blur * new sts
This commit is contained in:
@@ -101,9 +101,11 @@ export class Dropdown extends Disposable implements IListVirtualDelegate<string>
|
||||
|
||||
this._el = DOM.append(container, DOM.$('.monaco-dropdown'));
|
||||
this._el.style.width = '100%';
|
||||
this._el.style.height = '100%';
|
||||
|
||||
this._inputContainer = DOM.append(this._el, DOM.$('.dropdown-input.select-container'));
|
||||
this._inputContainer.style.width = '100%';
|
||||
this._inputContainer.style.height = '100%';
|
||||
this._selectListContainer = DOM.$('div');
|
||||
|
||||
this._input = new InputBox(this._inputContainer, contextViewService, {
|
||||
@@ -166,7 +168,6 @@ export class Dropdown extends Disposable implements IListVirtualDelegate<string>
|
||||
this._input.validate();
|
||||
this._onBlur.fire();
|
||||
this._hideList();
|
||||
e.stopPropagation();
|
||||
break;
|
||||
case KeyCode.DownArrow:
|
||||
if (!this._isDropDownVisible) {
|
||||
|
||||
@@ -17,3 +17,8 @@
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.monaco-dropdown .monaco-inputbox {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
@@ -152,6 +152,9 @@ export class TableCellEditorFactory {
|
||||
this._component.onValueChange(async () => {
|
||||
await this.commitEdit();
|
||||
});
|
||||
this._component.onBlur(async () => {
|
||||
await this.commitEdit();
|
||||
});
|
||||
} else {
|
||||
this._component = new SelectBox([], undefined, self._contextViewProvider);
|
||||
this._component.render(container);
|
||||
|
||||
@@ -20,8 +20,8 @@ export class TableDesignerMetadata {
|
||||
* @returns filtered telemetry info with only allowed metadata points
|
||||
*/
|
||||
public static getTelemetryInfo(providerId: string, metadata: { [key: string]: string }): { [key: string]: string } {
|
||||
if (!TableDesignerMetadata.providerMetadataMap.has(providerId)) {
|
||||
return undefined;
|
||||
if (!TableDesignerMetadata.providerMetadataMap.has(providerId) || !metadata) {
|
||||
return {};
|
||||
}
|
||||
const allowedSet = TableDesignerMetadata.providerMetadataMap.get(providerId);
|
||||
for (const key of Object.keys(metadata)) {
|
||||
@@ -31,5 +31,4 @@ export class TableDesignerMetadata {
|
||||
}
|
||||
return metadata;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user