mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-02 07:54:48 -07:00
Minor UX updates for IDE mode (#4311)
This commit is contained in:
@@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user