Skip to content

Commit ad848ac

Browse files
committed
fix: Remove non-functional spellCheck attribute and document VSCode webview limitation
- Removed spellCheck={true} from ChatTextArea as it does not work in VSCode webviews - Added comment explaining the limitation with reference to VSCode issue #30180 - This addresses the concern raised by @mrubens about spell check not working
1 parent 97aec2e commit ad848ac

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

webview-ui/src/components/chat/ChatTextArea.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1076,7 +1076,9 @@ const ChatTextArea = forwardRef<HTMLTextAreaElement, ChatTextAreaProps>(
10761076
minRows={3}
10771077
maxRows={15}
10781078
autoFocus={true}
1079-
spellCheck={true}
1079+
// Note: spellCheck doesn't work in VSCode webviews due to platform limitations
1080+
// The native browser spell check functionality is disabled in VSCode's webview environment
1081+
// See: https://github.com/microsoft/vscode/issues/30180
10801082
className={cn(
10811083
"w-full",
10821084
"text-vscode-input-foreground",

0 commit comments

Comments
 (0)