mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-08 09:38:26 -05:00
implement editor move and fix disposal error in query editor (#9281)
This commit is contained in:
@@ -10,9 +10,10 @@ import { IQueryModelService } from 'sql/workbench/services/query/common/queryMod
|
||||
|
||||
import { FileEditorInput } from 'vs/workbench/contrib/files/common/editors/fileEditorInput';
|
||||
import { IConfigurationService } from 'vs/platform/configuration/common/configuration';
|
||||
import { EncodingMode } from 'vs/workbench/common/editor';
|
||||
import { EncodingMode, IMoveResult, GroupIdentifier } from 'vs/workbench/common/editor';
|
||||
import { BinaryEditorModel } from 'vs/workbench/common/editor/binaryEditorModel';
|
||||
import { ITextFileEditorModel } from 'vs/workbench/services/textfile/common/textfiles';
|
||||
import { URI } from 'vs/base/common/uri';
|
||||
|
||||
type PublicPart<T> = { [K in keyof T]: T[K] };
|
||||
|
||||
@@ -82,4 +83,8 @@ export class FileQueryEditorInput extends QueryEditorInput implements PublicPart
|
||||
public isResolved(): boolean {
|
||||
return this.text.isResolved();
|
||||
}
|
||||
|
||||
public move(group: GroupIdentifier, target: URI): IMoveResult {
|
||||
return this.text.move(group, target);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user