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

tsserver drops responses #3887

Closed
dbaeumer opened this issue Jul 16, 2015 · 4 comments
Closed

tsserver drops responses #3887

dbaeumer opened this issue Jul 16, 2015 · 4 comments
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue

Comments

@dbaeumer
Copy link
Member

The tsserver drops responses for requests that doesn't compute a valid value. An example is quickInfo request for a boolean literal (true, false). The actual quickInfo result is undefined which leads to no response send.

This is a regression and worked before.

@dbaeumer dbaeumer changed the title tsserver drop responses tsserver drops responses Jul 16, 2015
@dbaeumer
Copy link
Member Author

This big shows that it would be worthwhile rethinking the response strategy. The code would be a lot clearer if every request sends a response. I would make the life of clients easier as well. If something doesn't require a response then an event should be used and not a request.

@RyanCavanaugh RyanCavanaugh added the Bug A bug in TypeScript label Jul 16, 2015
mhegazy added a commit that referenced this issue Jul 16, 2015
@mhegazy
Copy link
Contributor

mhegazy commented Jul 16, 2015

@dbaeumer I agree, this is what we should have done from the get go. feel free to send a PR for that. @zhengbli there should not be any need for changes on the sublime text plugin side if openFile for instance started sending a response, correct?

@mhegazy mhegazy added the Fixed A PR has been merged for this issue label Jul 16, 2015
@mhegazy mhegazy added this to the TypeScript 1.6 milestone Jul 16, 2015
@zhengbli
Copy link
Contributor

Right the changes won't affect Sublime Text. I also agree it would be less error-prone this way.

@weswigham
Copy link
Member

I concur - needing to specify the presence of responses and if one should be waited on has been the source of a number of bugs during my development.

@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue
Projects
None yet
Development

No branches or pull requests

5 participants