mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 11:38:51 +01:00
Add get tabs tests
This commit is contained in:
@@ -46,7 +46,7 @@ import { WorkspaceTrustRequestOptions } from 'vs/platform/workspace/common/works
|
||||
import { ExtensionActivationReason } from 'vs/workbench/api/common/extHostExtensionActivator';
|
||||
import { ExtHostInteractive } from 'vs/workbench/api/common/extHostInteractive';
|
||||
import { TunnelDto } from 'vs/workbench/api/common/extHostTunnelService';
|
||||
import { DebugConfigurationProviderTriggerKind, ViewColumn } from 'vs/workbench/api/common/extHostTypes';
|
||||
import { DebugConfigurationProviderTriggerKind } from 'vs/workbench/api/common/extHostTypes';
|
||||
import * as tasks from 'vs/workbench/api/common/shared/tasks';
|
||||
import { TreeDataTransferDTO } from 'vs/workbench/api/common/shared/treeDataTransfer';
|
||||
import { SaveReason } from 'vs/workbench/common/editor';
|
||||
@@ -640,7 +640,7 @@ export interface MainThreadEditorTabsShape extends IDisposable {
|
||||
}
|
||||
|
||||
export interface IEditorTabDto {
|
||||
viewColumn: ViewColumn;
|
||||
viewColumn: EditorGroupColumn;
|
||||
label: string;
|
||||
resource?: UriComponents | { primary?: UriComponents, secondary?: UriComponents };
|
||||
editorId?: string;
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import type * as vscode from 'vscode';
|
||||
import * as typeConverters from 'vs/workbench/api/common/extHostTypeConverters';
|
||||
import { IEditorTabDto, IExtHostEditorTabsShape } from 'vs/workbench/api/common/extHost.protocol';
|
||||
import { URI, UriComponents } from 'vs/base/common/uri';
|
||||
import { Emitter, Event } from 'vs/base/common/event';
|
||||
@@ -69,7 +70,7 @@ export class ExtHostEditorTabs implements IExtHostEditorTabs {
|
||||
}
|
||||
return Object.freeze({
|
||||
label: dto.label,
|
||||
viewColumn: dto.viewColumn,
|
||||
viewColumn: typeConverters.ViewColumn.to(dto.viewColumn),
|
||||
resource,
|
||||
editorId: dto.editorId,
|
||||
isActive: dto.isActive
|
||||
|
||||
Reference in New Issue
Block a user