Add isDirty

This commit is contained in:
Logan Ramos
2022-02-16 15:35:42 -05:00
parent ad0311a25a
commit f932fd6ae4
4 changed files with 28 additions and 6 deletions

View File

@@ -17,6 +17,7 @@ export interface IEditorTab {
resource: vscode.Uri | undefined;
viewId: string | undefined;
isActive: boolean;
isDirty: boolean;
additionalResourcesAndViewIds: { resource: vscode.Uri | undefined; viewId: string | undefined }[];
move(index: number, viewColumn: ViewColumn): Promise<void>;
close(): Promise<void>;
@@ -91,6 +92,7 @@ export class ExtHostEditorTabs implements IExtHostEditorTabs {
additionalResourcesAndViewIds: tabDto.additionalResourcesAndViewIds.map(({ resource, viewId }) => ({ resource: URI.revive(resource), viewId })),
viewId: tabDto.editorId,
isActive: tabDto.isActive,
isDirty: tabDto.isDirty,
move: async (index: number, viewColumn: ViewColumn) => {
this._proxy.$moveTab(tabDto, index, typeConverters.ViewColumn.from(viewColumn));
// TODO: Need an on did change tab event at the group level