mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-20 01:25:37 -05:00
strict null check contrib/editorReplace and services/queryEditor (#12166)
This commit is contained in:
@@ -50,7 +50,7 @@ export class EditDataInput extends EditorInput implements IConnectableInput {
|
||||
super();
|
||||
this._hasBootstrapped = false;
|
||||
this._updateTaskbar = new Emitter<EditDataInput>();
|
||||
this._showResultsEditor = new Emitter<EditDataInput>();
|
||||
this._showResultsEditor = new Emitter<EditDataInput | undefined>();
|
||||
this._editorInitializing = new Emitter<boolean>();
|
||||
this._setup = false;
|
||||
this._stopButtonEnabled = false;
|
||||
@@ -86,7 +86,7 @@ export class EditDataInput extends EditorInput implements IConnectableInput {
|
||||
this._register(
|
||||
this._queryModelService.onEditSessionReady((result) => {
|
||||
if (this.uri === result.ownerUri) {
|
||||
this._results.editDataGridPanel.onRefreshComplete.then(() => {
|
||||
this._results.editDataGridPanel!.onRefreshComplete.then(() => {
|
||||
this.initEditEnd(result);
|
||||
});
|
||||
}
|
||||
@@ -218,7 +218,7 @@ export class EditDataInput extends EditorInput implements IConnectableInput {
|
||||
}
|
||||
|
||||
public resolve(refresh?: boolean): Promise<IUntitledTextEditorModel & IResolvedTextEditorModel> { return this._sql.resolve(); }
|
||||
public getEncoding(): string { return this._sql.getEncoding(); }
|
||||
public getEncoding(): string | undefined { return this._sql.getEncoding(); }
|
||||
public getName(): string { return this._sql.getName(); }
|
||||
public get hasAssociatedFilePath(): boolean { return this._sql.model.hasAssociatedFilePath; }
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ export class EditDataResultsInput extends EditorInput {
|
||||
|
||||
public readonly onRestoreViewStateEmitter = new Emitter<void>();
|
||||
public readonly onSaveViewStateEmitter = new Emitter<void>();
|
||||
private _editDataGridPanel: IGridPanel;
|
||||
private _editDataGridPanel?: IGridPanel;
|
||||
|
||||
constructor(private _uri: string) {
|
||||
super();
|
||||
@@ -37,11 +37,11 @@ export class EditDataResultsInput extends EditorInput {
|
||||
this._hasBootstrapped = false;
|
||||
}
|
||||
|
||||
get editDataGridPanel(): IGridPanel {
|
||||
get editDataGridPanel(): IGridPanel | undefined {
|
||||
return this._editDataGridPanel;
|
||||
}
|
||||
|
||||
set editDataGridPanel(gridPanel: IGridPanel) {
|
||||
set editDataGridPanel(gridPanel: IGridPanel | undefined) {
|
||||
this._editDataGridPanel = gridPanel;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user