Skip to content

Conversation

aozgaa
Copy link
Contributor

@aozgaa aozgaa commented Dec 5, 2017

The response gives the tsserver version, needed for telemetry.

@aozgaa aozgaa requested review from billti, mhegazy, RyanCavanaugh and a user December 5, 2017 02:24
@sheetalkamat
Copy link
Member

May be would be a good idea to add test for this api in tsserverProjectSystem that checks on this command session returns ts.version

@@ -216,6 +217,27 @@ namespace ts.server.protocol {
projectFileName?: string;
}

/**
Copy link

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed.


export interface StatusResponseBody {
/**
* the version of the currently-running server.
Copy link

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)"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed.

@aozgaa
Copy link
Contributor Author

aozgaa commented Dec 6, 2017

@sheetalkamat I didn't find a reasonable spot to put the test in tsserverProjectSystem.ts, so I placed it in session.ts instead. Did I miss a section of the former file where we check various requests? Is the latter okay?

@aozgaa aozgaa merged commit 477c1f5 into master Dec 7, 2017
@aozgaa aozgaa deleted the dev/aozgaa/tsserverVersion branch December 7, 2017 01:05
@aozgaa aozgaa restored the dev/aozgaa/tsserverVersion branch December 7, 2017 21:45
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
@RyanCavanaugh RyanCavanaugh deleted the dev/aozgaa/tsserverVersion branch June 16, 2022 22:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants