mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-17 01:25:36 -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; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user