Typescript intellisense does not recognize 'delete'd attributes #56340
Labels
javascript
JavaScript support issues
upstream
Issue identified as 'upstream' component related (exists outside of VS Code)
Whenever you
delete
an attribute from an object, I'd expect intellisense to recognize that said attribute was removed.Example of the problem:
The expected behavior would be for the autocomplete feature to NOT show the
date
attribute. Furthermore, if I were to call anything over said property(say,example.date.toISOString()
) it should warn me of the undefined call.delete
ing an attribute from a class/interface that does not define it as an optional attribute should also be an error IMO, though I don't know how feasible that is.Either way, VSCode(or the typescript language server?) has no support for the side effects of
delete
atm.Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered: