mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-18 17:22:45 -05:00
fix recent closed (#20188)
This commit is contained in:
@@ -10,6 +10,7 @@ import { IInstantiationService } from 'vs/platform/instantiation/common/instanti
|
||||
import { IExtensionService } from 'vs/workbench/services/extensions/common/extensions';
|
||||
import { NotebookInput } from 'sql/workbench/contrib/notebook/browser/models/notebookInput';
|
||||
import { INotebookService } from 'sql/workbench/services/notebook/browser/notebookService';
|
||||
import { IResourceEditorInput } from 'vs/platform/editor/common/editor';
|
||||
|
||||
export class FileNotebookInput extends NotebookInput {
|
||||
public static ID: string = 'workbench.editorinputs.fileNotebookInput';
|
||||
@@ -50,4 +51,10 @@ export class FileNotebookInput extends NotebookInput {
|
||||
public getEncoding(): string | undefined {
|
||||
return this.textInput.getEncoding();
|
||||
}
|
||||
|
||||
override toUntyped(): IResourceEditorInput {
|
||||
return <IResourceEditorInput>{
|
||||
resource: this.resource
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,6 +17,7 @@ import { URI } from 'vs/base/common/uri';
|
||||
import { FILE_QUERY_EDITOR_TYPEID } from 'sql/workbench/common/constants';
|
||||
import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation';
|
||||
import { EditorInput } from 'vs/workbench/common/editor/editorInput';
|
||||
import { IResourceEditorInput } from 'vs/platform/editor/common/editor';
|
||||
|
||||
export class FileQueryEditorInput extends QueryEditorInput {
|
||||
|
||||
@@ -120,4 +121,10 @@ export class FileQueryEditorInput extends QueryEditorInput {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
override toUntyped(): IResourceEditorInput {
|
||||
return <IResourceEditorInput>{
|
||||
resource: this.resource,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user