Skip to content

Add a status request-response for editors#20465

Merged
aozgaa merged 5 commits into
masterfrom
dev/aozgaa/tsserverVersion
Dec 7, 2017
Merged

Add a status request-response for editors#20465
aozgaa merged 5 commits into
masterfrom
dev/aozgaa/tsserverVersion

Conversation

@aozgaa
Copy link
Copy Markdown
Contributor

@aozgaa aozgaa commented Dec 5, 2017

The response gives the tsserver version, needed for telemetry.

@aozgaa aozgaa requested review from a user, RyanCavanaugh, billti and mhegazy December 5, 2017 02:24
@sheetalkamat
Copy link
Copy Markdown
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

Comment thread src/server/protocol.ts Outdated
projectFileName?: string;
}

/**
Copy link
Copy Markdown

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
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

removed.

Comment thread src/server/protocol.ts Outdated

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

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
Copy Markdown
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
Copy Markdown
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