emmetio/nova-plugin

Add support in .tsx for React with TypeScript

Closed this issue · 6 comments

lailo commented

Describe the solution you'd like
I would like to get autocomplete while typing and correct expand for .tsx files which are used in React with TypeScript.

Additional context
Currently, there is no autocomplete popup while typing in .tsx nor the JavaScript version of it .jsx.
If I use the Expand Abbreviation, I get class="..." instead of className="..." in .tsx files. In a .jsx file the className="..." works fine.

Thanks for helping.

Should be fixed in v1.3.0

Hi, this is still a issue for me, using v1.3.1.

Foo.Bar is expanded into <Foo className="Bar"></Foo>, and div.test is expanded into <div class="test"></div>.

I may be missing something here but autocomplete does not seem to work in .tsx files still

@cora-type seems to be broken due to latest changes in Nova. Just pushed v1.3.5 that should work with TS.

Note that by default in JSX syntaxes it’s required to prefix abbreviation with <
image

Works great now, thanks!

Hmm. I'm still not getting the className completion in .tsx files. Using ctrl + e.