test version request

This commit is contained in:
Arthur Ozga 2017-12-06 14:19:08 -08:00
parent 03e93d832e
commit fcc822e879

View file

@ -169,6 +169,19 @@ namespace ts.server {
allowNonTsExtensions: true // injected by tsserver
});
});
it("Status request gives ts.version", () => {
const req: protocol.StatusRequest = {
command: CommandNames.Status,
seq: 0,
type: "request"
};
const expected: protocol.StatusResponseBody = {
version: ts.version
};
assert.deepEqual(session.executeCommand(req).response, expected);
});
});
describe("onMessage", () => {
@ -220,6 +233,7 @@ namespace ts.server {
CommandNames.Saveto,
CommandNames.SignatureHelp,
CommandNames.SignatureHelpFull,
CommandNames.Status,
CommandNames.TypeDefinition,
CommandNames.ProjectInfo,
CommandNames.ReloadProjects,