ipatalas / vscode-postfix-ts

Postfix notation for TypeScript/Javascript - extension for VS Code
MIT License
158 stars 43 forks source link

Shouldn't be suggested in JSX Elements & `JSXText` #82

Closed zardoy closed 2 years ago

zardoy commented 2 years ago

Postfixes should not be suggested inside JSX text/Elements. Failing examples:

;<>a.castas</>
;<p.promisify></p>
;<p test.not></p>
;<p className="thing.log"></p>

But support for JSXExpression should be preserved:

;<p hidden={showMe.not}>test{thing.castas}</p>
ipatalas commented 2 years ago

Good idea, I see TS AST supports this so this will be easy, thanks for suggestion.