Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typescript intellisense does not recognize 'delete'd attributes #56340

Closed
Barbiero opened this issue Aug 14, 2018 · 1 comment
Closed

Typescript intellisense does not recognize 'delete'd attributes #56340

Barbiero opened this issue Aug 14, 2018 · 1 comment
Assignees
Labels
javascript JavaScript support issues upstream Issue identified as 'upstream' component related (exists outside of VS Code)

Comments

@Barbiero
Copy link

Whenever you deletean attribute from an object, I'd expect intellisense to recognize that said attribute was removed.
Example of the problem:
example

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. deleteing 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.

  • VSCode Version: 1.26

Does this issue occur when all extensions are disabled?: Yes

@mjbvz
Copy link
Collaborator

mjbvz commented Aug 20, 2018

This issue was moved to microsoft/TypeScript#26549

@mjbvz mjbvz closed this as completed Aug 20, 2018
@mjbvz mjbvz added upstream Issue identified as 'upstream' component related (exists outside of VS Code) javascript JavaScript support issues labels Aug 20, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Oct 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
javascript JavaScript support issues upstream Issue identified as 'upstream' component related (exists outside of VS Code)
Projects
None yet
Development

No branches or pull requests

2 participants