Skip to content

Commit 1d8e74b

Browse files
authored
Prevent autocomplete when in JSX
FIX: Disable JavaScript completions in JSX context. See #14
1 parent 7edd3df commit 1d8e74b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/complete.ts

+1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ export const dontComplete = [
6868
"VariableDefinition", "TypeDefinition", "Label",
6969
"PropertyDefinition", "PropertyName",
7070
"PrivatePropertyDefinition", "PrivatePropertyName",
71+
"JSXText", "JSXAttributeValue", "JSXOpenTag", "JSXCloseTag", "JSXSelfClosingTag",
7172
".", "?."
7273
]
7374

0 commit comments

Comments
 (0)