Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add TabGroupChangeEvent-event which is similar to the TabChangeEvent #147443

Merged
merged 1 commit into from Apr 14, 2022

Conversation

jrieken
Copy link
Member

@jrieken jrieken commented Apr 14, 2022

Small refinement to the tab API proposal

This is similar to the TabChangeEvent but uses opened/closed instead of added/removed. We should align them and I think I have hereby expressed my preference ;-)

@jrieken jrieken requested a review from lramos15 April 14, 2022 09:49
@jrieken jrieken added this to the April 2022 milestone Apr 14, 2022
@@ -271,8 +272,22 @@ export class ExtHostEditorTabs implements IExtHostEditorTabs {

$acceptEditorTabModel(tabGroups: IEditorTabGroupDto[]): void {

const groupIdsBefore = new Set(this._extHostTabGroups.map(group => group.groupId));
const groupIdsAfter = new Set(tabGroups.map(dto => dto.groupId));
const diff = diffSets(groupIdsBefore, groupIdsAfter);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we do patching for groups we won't have to do this in the future.

@lramos15 lramos15 merged commit 35c34e1 into main Apr 14, 2022
@lramos15 lramos15 deleted the joh/tab/groupEvent branch April 14, 2022 13:08
@github-actions github-actions bot locked and limited conversation to collaborators May 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants