mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 19:52:02 +00:00
refactor(ide): Improve IDE detection discovery (#6765)
This commit is contained in:
parent
0641b1c095
commit
776627c855
13 changed files with 373 additions and 152 deletions
|
|
@ -86,6 +86,7 @@ import { McpPromptLoader } from '../../services/McpPromptLoader.js';
|
|||
import {
|
||||
SlashCommandStatus,
|
||||
makeFakeConfig,
|
||||
type IdeClient,
|
||||
} from '@google/gemini-cli-core/index.js';
|
||||
|
||||
function createTestCommand(
|
||||
|
|
@ -109,6 +110,10 @@ describe('useSlashCommandProcessor', () => {
|
|||
const mockSetQuittingMessages = vi.fn();
|
||||
|
||||
const mockConfig = makeFakeConfig({});
|
||||
vi.spyOn(mockConfig, 'getIdeClient').mockReturnValue({
|
||||
addStatusChangeListener: vi.fn(),
|
||||
removeStatusChangeListener: vi.fn(),
|
||||
} as unknown as IdeClient);
|
||||
|
||||
const mockSettings = {} as LoadedSettings;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue