You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But when I start typing something for example is and press CTRL+Space to trigger the intellisense, it actually show the intellisense with words that contains is
However, if I just use one of its field types, it works:
I thought it might be a TypeScript issue, so I tried the non-working code in a simple TypeScript file, and everything works as expected:
The fact that it's the same problem in VSCode and Webstorm, and it works with a simple typescript file, this leads me to believe the problem is specific to Svelte
Reproduction
install the @nextui-org/theme module and create a component with the following code:
Now try checking the attributes intelliSense when you use the component
Expected behaviour
When using the component, IntelliSense should provide autocompletion and type suggestions based on the ButtonVariantProps type imported from @nextui-org/theme. All properties defined within ButtonVariantProps should be available in IntelliSense to enhance the development experience.
Describe the bug
I've been experiencing a problem with IntelliSense when using Svelte's
$props
( same problem on VS Code and Webstorm ).When I import a type from
@nextui-org/theme
and use it as the props type for my component's attributes, IntelliSense doesn't work at all:If I extend it with a
Snippet
, for example, I only get the children prop:But when I start typing something for example is and press CTRL+Space to trigger the intellisense, it actually show the intellisense with words that contains is
However, if I just use one of its field types, it works:
I thought it might be a TypeScript issue, so I tried the non-working code in a simple TypeScript file, and everything works as expected:
The fact that it's the same problem in VSCode and Webstorm, and it works with a simple typescript file, this leads me to believe the problem is specific to Svelte
Reproduction
install the
@nextui-org/theme
module and create a component with the following code:Now try checking the attributes intelliSense when you use the component
Expected behaviour
When using the component, IntelliSense should provide autocompletion and type suggestions based on the
ButtonVariantProps
type imported from@nextui-org/theme
. All properties defined withinButtonVariantProps
should be available in IntelliSense to enhance the development experience.System Info
Which package is the issue about?
No response
Additional Information, eg. Screenshots
The text was updated successfully, but these errors were encountered: