-
Notifications
You must be signed in to change notification settings - Fork 13k
Add a status request-response for editors #20465
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
May be would be a good idea to add test for this api in tsserverProjectSystem that checks on this command session returns ts.version |
src/server/protocol.ts
Outdated
@@ -216,6 +217,27 @@ namespace ts.server.protocol { | |||
projectFileName?: string; | |||
} | |||
|
|||
/** |
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.
All of the *Request interfaces "request xxx information from the server" so I would just omit the comment.
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.
removed.
src/server/protocol.ts
Outdated
|
||
export interface StatusResponseBody { | ||
/** | ||
* the version of the currently-running server. |
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.
Nit: We don't version the server independently of TypeScript as a whole (like we do with services) -- so I would say "The TypeScript version (ts.version
)"
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.
changed.
@sheetalkamat I didn't find a reasonable spot to put the test in |
The response gives the tsserver version, needed for telemetry.