refactor(ui): name workspace surfaces
This commit is contained in:
@@ -12,7 +12,6 @@ import { useI18n } from '@/lib/i18n';
|
||||
import { useEffectiveDirectory } from '@/hooks/useEffectiveDirectory';
|
||||
import { getRuntimeKey } from '@/lib/runtime-switch';
|
||||
import { focusChatInput } from '@/components/chat/composer/editor/dom';
|
||||
import { useUIStore } from '@/stores/useUIStore';
|
||||
|
||||
type LineRangeBase = {
|
||||
start: number;
|
||||
@@ -164,7 +163,6 @@ export function useInlineCommentController<TRange extends LineRangeBase>(
|
||||
|
||||
reset();
|
||||
if (isNewComment) {
|
||||
useUIStore.getState().setActiveMainTab('chat');
|
||||
requestAnimationFrame(focusChatInput);
|
||||
}
|
||||
}, [addDraft, editingDraftId, fileLabel, getCodeForRange, language, reset, selection, source, t, target, toStoreRange, updateDraft]);
|
||||
|
||||
Reference in New Issue
Block a user