mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-01 01:25:38 -05:00
Merge from vscode e3c4990c67c40213af168300d1cfeb71d680f877 (#16569)
This commit is contained in:
@@ -10,7 +10,7 @@ import { DisposableStore } from 'vs/base/common/lifecycle';
|
||||
import { CancellationToken } from 'vs/base/common/cancellation';
|
||||
import { IStorageService } from 'vs/platform/storage/common/storage';
|
||||
import * as DOM from 'vs/base/browser/dom';
|
||||
import { EditorOptions, IEditorOpenContext } from 'vs/workbench/common/editor';
|
||||
import { IEditorOpenContext } from 'vs/workbench/common/editor';
|
||||
import { ITelemetryService } from 'vs/platform/telemetry/common/telemetry';
|
||||
import { IWorkbenchThemeService } from 'vs/workbench/services/themes/common/workbenchThemeService';
|
||||
import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation';
|
||||
@@ -23,6 +23,7 @@ import { fillInActions } from 'vs/platform/actions/browser/menuEntryActionViewIt
|
||||
import { IMenuService, MenuId } from 'vs/platform/actions/common/actions';
|
||||
import { IContextKeyService } from 'vs/platform/contextkey/common/contextkey';
|
||||
import { IContextMenuService } from 'vs/platform/contextview/browser/contextView';
|
||||
import { IEditorOptions } from 'vs/platform/editor/common/editor';
|
||||
|
||||
export type ContextMenuAnchor = HTMLElement | { x: number; y: number; width?: number; height?: number; };
|
||||
|
||||
@@ -88,7 +89,7 @@ export class ResourceViewerEditor extends EditorPane {
|
||||
return this._input as ResourceViewerInput;
|
||||
}
|
||||
|
||||
override async setInput(input: ResourceViewerInput, options: EditorOptions | undefined, context: IEditorOpenContext, token: CancellationToken): Promise<void> {
|
||||
override async setInput(input: ResourceViewerInput, options: IEditorOptions | undefined, context: IEditorOpenContext, token: CancellationToken): Promise<void> {
|
||||
await super.setInput(input, options, context, token);
|
||||
|
||||
this._resourceViewerTable.title = input.title;
|
||||
@@ -105,9 +106,9 @@ export class ResourceViewerEditor extends EditorPane {
|
||||
});
|
||||
|
||||
this._inputDisposables.add(input.onColumnsChanged(columns => {
|
||||
this._resourceViewerTable.columns = columns;
|
||||
this._resourceViewerTable.columns = columns as any; // Cast to any to fix strict type assertion error
|
||||
}));
|
||||
this._resourceViewerTable.columns = input.columns;
|
||||
this._resourceViewerTable.columns = input.columns as any;
|
||||
|
||||
this._inputDisposables.add(input.onDataChanged(() => {
|
||||
this._resourceViewerTable.data = input.data;
|
||||
|
||||
@@ -95,7 +95,7 @@ export class ResourceViewerTable extends Disposable {
|
||||
}
|
||||
|
||||
public set columns(columns: Slick.Column<Slick.SlickData>[]) {
|
||||
this._resourceViewerTable.columns = columns;
|
||||
this._resourceViewerTable.columns = columns as any; // Cast to any to fix strict type assertion error
|
||||
this._resourceViewerTable.autosizeColumns();
|
||||
}
|
||||
|
||||
@@ -128,7 +128,7 @@ export class ResourceViewerTable extends Disposable {
|
||||
const columns = this._resourceViewerTable.grid.getColumns();
|
||||
let value = true;
|
||||
for (let i = 0; i < columns.length; i++) {
|
||||
const col: FilterableColumn<Slick.SlickData> = columns[i];
|
||||
const col: FilterableColumn<Slick.SlickData> = columns[i] as any; // Cast to any to fix strict type assertion error
|
||||
if (!col.field) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user