Typescript intellisense does not recognize 'delete'd attributes #26549
Labels
VS Code Tracked
There is a VS Code equivalent to this issue
Won't Fix
The severity and priority of this issue do not warrant the time or complexity needed to fix it
From @Barbiero on August 14, 2018 11:30
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
Copied from original issue: microsoft/vscode#56340
The text was updated successfully, but these errors were encountered: