Minor UX updates for IDE mode (#4311)

This commit is contained in:
Shreya Keshive
2025-07-16 17:33:56 -04:00
committed by GitHub
parent f6ee0d182b
commit 69a8ae6a89
5 changed files with 99 additions and 2 deletions
@@ -122,4 +122,19 @@ describe('ideContext - Active File', () => {
const activeFile = ideContext.getActiveFileContext();
expect(activeFile).toEqual(testFile);
});
it('should clear the active file context', () => {
const testFile = {
filePath: '/path/to/test/file.ts',
cursor: { line: 5, character: 10 },
};
ideContext.setActiveFileContext(testFile);
expect(ideContext.getActiveFileContext()).toEqual(testFile);
ideContext.clearActiveFileContext();
expect(ideContext.getActiveFileContext()).toBeUndefined();
});
});