mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-30 20:50:34 +00:00
Add toggleable IDE mode setting (#5146)
This commit is contained in:
parent
ac1bb5ee42
commit
325bb89137
13 changed files with 231 additions and 123 deletions
|
|
@ -185,6 +185,8 @@ export const useSlashCommandProcessor = (
|
|||
],
|
||||
);
|
||||
|
||||
const ideMode = config?.getIdeMode();
|
||||
|
||||
useEffect(() => {
|
||||
const controller = new AbortController();
|
||||
const load = async () => {
|
||||
|
|
@ -205,7 +207,7 @@ export const useSlashCommandProcessor = (
|
|||
return () => {
|
||||
controller.abort();
|
||||
};
|
||||
}, [config]);
|
||||
}, [config, ideMode]);
|
||||
|
||||
const handleSlashCommand = useCallback(
|
||||
async (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue