Replace immersive instant-switch with animated active chrome theme sync so top tabs match terminal sessions immediately on tab click, and clamp autocomplete popups to the active pane so they stay anchored to the cursor in split workspaces. Co-authored-by: Cursor <cursoragent@cursor.com>
15 lines
498 B
TypeScript
15 lines
498 B
TypeScript
import assert from 'node:assert/strict';
|
|
import test from 'node:test';
|
|
|
|
import { fromEditorTabId, isEditorTabId, toEditorTabId } from './activeTabStore';
|
|
|
|
test('editor tab helpers round trip ids', () => {
|
|
assert.equal(toEditorTabId('file-1'), 'editor:file-1');
|
|
assert.equal(fromEditorTabId('editor:file-1'), 'file-1');
|
|
});
|
|
|
|
test('editor tab helper detects editor top-tab ids', () => {
|
|
assert.equal(isEditorTabId('editor:file-1'), true);
|
|
assert.equal(isEditorTabId('session-1'), false);
|
|
});
|