mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-30 15:04:16 -07:00
feat: add native Sublime Text support to IDE detection (#16083)
Co-authored-by: phreakocious <567063+phreakocious@users.noreply.github.com>
This commit is contained in:
@@ -114,6 +114,18 @@ describe('detectIde', () => {
|
||||
vi.stubEnv('ANTIGRAVITY_CLI_ALIAS', 'agy');
|
||||
expect(detectIde(ideProcessInfo)).toBe(IDE_DEFINITIONS.antigravity);
|
||||
});
|
||||
|
||||
it('should detect Sublime Text', () => {
|
||||
vi.stubEnv('TERM_PROGRAM', 'sublime');
|
||||
vi.stubEnv('ANTIGRAVITY_CLI_ALIAS', '');
|
||||
expect(detectIde(ideProcessInfo)).toBe(IDE_DEFINITIONS.sublimetext);
|
||||
});
|
||||
|
||||
it('should prioritize Antigravity over Sublime Text', () => {
|
||||
vi.stubEnv('TERM_PROGRAM', 'sublime');
|
||||
vi.stubEnv('ANTIGRAVITY_CLI_ALIAS', 'agy');
|
||||
expect(detectIde(ideProcessInfo)).toBe(IDE_DEFINITIONS.antigravity);
|
||||
});
|
||||
});
|
||||
|
||||
describe('detectIde with ideInfoFromFile', () => {
|
||||
|
||||
Reference in New Issue
Block a user