Open
Description
I know this is a weird question but I've an element component which I use a lot for my UI. And every time I accept autocomplete suggestion, it gives me =''. Example
enum Fonts{
Regular: 'Okra-regular',
Medium: 'Okra-Medium'
}
type Props = {
size: number;
fontFamily: Fonts // enum type
}
export const Typography = ({size, fontFamily}: Props) => {...}
When I import the Typography component and autocomplete it's props, the editor auto resolves size={} // since it's a number but fontFamily resolves to fontFamily=''. So, I have to hit extra keystrokes to make it to fontFamily={}.
Therefore, is there any way that I can make the language server understand that I want to dynamically resolve fontFamily value and need a {} instead of a string completion.
Metadata
Metadata
Assignees
Labels
No labels