Skip to content

Commit

Permalink
Prevent autocomplete when in JSX
Browse files Browse the repository at this point in the history
FIX: Disable JavaScript completions in JSX context.

See #14
  • Loading branch information
krismuniz authored Nov 24, 2024
1 parent 7edd3df commit 1d8e74b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/complete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export const dontComplete = [
"VariableDefinition", "TypeDefinition", "Label",
"PropertyDefinition", "PropertyName",
"PrivatePropertyDefinition", "PrivatePropertyName",
"JSXText", "JSXAttributeValue", "JSXOpenTag", "JSXCloseTag", "JSXSelfClosingTag",
".", "?."
]

Expand Down

0 comments on commit 1d8e74b

Please sign in to comment.