src/vs/workbench/api/common/extHostEditorTabs.ts/ExtHostEditorTabs/$acceptTabOperation
class ExtHostEditorTabs:	$acceptTabOperation(operation: TabOperation) {
		const group = this._extHostTabGroups.find(group => group.groupId === operation.groupId);
		if (!group) {
			throw new Error('Update Tabs IPC call received before group creation.');
		}
		const tab = group.acceptTabOperation(operation);

		// Construct the tab change event based on the operation
		switch (operation.kind) {
			case TabModelOperationKind.TAB_OPEN:
				this._onDidChangeTabs.fire({
					added: [tab.apiObject],
					removed: [],
					changed: []
				});
				return;
			case TabModelOperationKind.TAB_CLOSE:
				this._onDidChangeTabs.fire({
					added: [],
					removed: [tab.apiObject],
					changed: []
				});
				return;
			case TabModelOperationKind.TAB_MOVE:
			case TabModelOperationKind.TAB_UPDATE:
				this._onDidChangeTabs.fire({
					added: [],
					removed: [],
					changed: [tab.apiObject]
				});
				return;
		}
	}