Remove TabKind.other

This commit is contained in:
Logan Ramos 2022-03-14 14:55:00 -04:00
parent 43ebce7ce2
commit 6837589569
No known key found for this signature in database
GPG key ID: D9CCFF14F0B18183
4 changed files with 3 additions and 6 deletions

View file

@ -47,7 +47,6 @@ export class MainThreadEditorTabs {
* @returns A tab object
*/
private _buildTabObject(group: IEditorGroup, editor: EditorInput, editorIndex: number): IEditorTabDto {
// Even though the id isn't a diff / sideBySide on the main side we need to let the ext host know what type of editor it is
const editorId = editor.editorId;
const tabKind = editor instanceof DiffEditorInput ? TabKind.Diff : editor instanceof SideBySideEditorInput ? TabKind.SidebySide : TabKind.Singular;
const tab: IEditorTabDto = {

View file

@ -628,8 +628,7 @@ export interface IEditorTabGroupDto {
export enum TabKind {
Singular = 0,
Diff = 1,
SidebySide = 2,
Other = 3
SidebySide = 2
}
export interface IEditorTabDto {

View file

@ -40,7 +40,7 @@ suite('ExtHostEditorTabs', function () {
label: 'label1',
viewColumn: 0,
additionalResourcesAndViewTypes: [],
kind: TabKind.Other
kind: TabKind.Singular
};
extHostEditorTabs.$acceptEditorTabModel([{

View file

@ -10,8 +10,7 @@ declare module 'vscode' {
export enum TabKind {
Singular = 0,
Diff = 1,
SidebySide = 2,
Other = 3
SidebySide = 2
}
/**