Add toggleable IDE mode setting (#5146)

This commit is contained in:
christine betts 2025-07-30 22:36:24 +00:00 committed by GitHub
parent ac1bb5ee42
commit 325bb89137
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 231 additions and 123 deletions

View file

@ -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 (