vscode-postfix-ts icon indicating copy to clipboard operation
vscode-postfix-ts copied to clipboard

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

Open zardoy opened this issue 1 year ago • 1 comments

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>

zardoy avatar Sep 22 '22 13:09 zardoy

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

ipatalas avatar Sep 22 '22 17:09 ipatalas