Open l2dy opened 3 years ago
I think @chenglou added some snippets -- not sure if using Emmet.
This is not related to rescript-vscode. You have to enable emmet for rescript file type. take a look at here. based on that you have to put something like this in your config file.
"emmet.includeLanguages": {
"rescript": "javascriptreact"
}
Emmet has no knowledge of these new languages, and so there might be Emmet suggestions showing up in non HTML/CSS contexts.
Is it possible to improve the experience? Emmet completions are popping out wherever I type if I add rescript
to emmet.includeLanguages
.
I'm not sure if we can improve this from rescript side. Are you aware of other language plugins doing this?
I'm not sure if we can improve this from rescript side. Are you aware of other language plugins doing this?
Yes, Svelte plugin supports Emmet through vscode-emmet-helper.
This might be a bit tricky in our setup, but let's think a bit about how we could leverage that module.
Is it possible to get Emmet support in ReScript JSX? https://code.visualstudio.com/docs/editor/emmet