further avoid types

This commit is contained in:
Benjamin Pasero 2021-11-24 11:38:43 +01:00
parent 84cdf9f9f9
commit eaba92f5a1
No known key found for this signature in database
GPG key ID: E6380CC4C8219E65

View file

@ -4,7 +4,7 @@
*--------------------------------------------------------------------------------------------*/
import { Event, Emitter } from 'vs/base/common/event';
import { IEditorFactoryRegistry, GroupIdentifier, EditorsOrder, EditorExtensions, IUntypedEditorInput, SideBySideEditor, EditorCloseContext, IEditorIdentifier } from 'vs/workbench/common/editor';
import { IEditorFactoryRegistry, GroupIdentifier, EditorsOrder, EditorExtensions, IUntypedEditorInput, SideBySideEditor, EditorCloseContext } from 'vs/workbench/common/editor';
import { EditorInput } from 'vs/workbench/common/editor/editorInput';
import { SideBySideEditorInput } from 'vs/workbench/common/editor/sideBySideEditorInput';
import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation';
@ -147,7 +147,8 @@ export interface IGroupEditorCloseEvent extends IGroupChangeEvent {
readonly closedSticky: boolean;
}
interface IEditorCloseResult extends IEditorIdentifier {
interface IEditorCloseResult {
readonly editor: EditorInput;
readonly context: EditorCloseContext;
readonly index: number;
readonly sticky: boolean;
@ -513,7 +514,7 @@ export class EditorGroupModel extends Disposable {
this.splice(index, true);
// Event
return { editor, sticky, index, groupId: this.id, context };
return { editor, sticky, index, context };
}
moveEditor(candidate: EditorInput, toIndex: number): EditorInput | undefined {