-
Notifications
You must be signed in to change notification settings - Fork 13k
Add file content as a parameter for the tsserver open command #5593
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
Conversation
src/server/editorServices.ts
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
couldn't this be fileContent || this.host.readFile(filename)
?
src/server/protocol.d.ts
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add comment on how this is expected to work. and when the user should send it.
please add tests. |
looks good. please add the comment and a test to ensure we do not break this in the future. |
Yes, looks good to me. |
the best we can do is put it in 1.7. it is definitely going to be in 1.8. |
is this blocking? |
@mhegazy it might be blocking if it is used often with large files frequently I suppose, however the command is not supposed to be called very often (as suggested only in situations like when the server crashes) |
👍 |
we can merge/cherry pick this into 1.7 as needed. |
@dbaeumer would 1.7 work for you? |
@mhegazy we are still shipping 1.6.2. We did our testing last week and don't want to change the tsserver now. In addition the default TS npm package still seems to be 1.6.2. |
👍 |
Add file content as a parameter for the tsserver open command
Fix #5530.