File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -169,6 +169,19 @@ namespace ts.server {
169169 allowNonTsExtensions : true // injected by tsserver
170170 } ) ;
171171 } ) ;
172+
173+ it ( "Status request gives ts.version" , ( ) => {
174+ const req : protocol . StatusRequest = {
175+ command : CommandNames . Status ,
176+ seq : 0 ,
177+ type : "request"
178+ } ;
179+
180+ const expected : protocol . StatusResponseBody = {
181+ version : ts . version
182+ } ;
183+ assert . deepEqual ( session . executeCommand ( req ) . response , expected ) ;
184+ } ) ;
172185 } ) ;
173186
174187 describe ( "onMessage" , ( ) => {
@@ -220,6 +233,7 @@ namespace ts.server {
220233 CommandNames . Saveto ,
221234 CommandNames . SignatureHelp ,
222235 CommandNames . SignatureHelpFull ,
236+ CommandNames . Status ,
223237 CommandNames . TypeDefinition ,
224238 CommandNames . ProjectInfo ,
225239 CommandNames . ReloadProjects ,
You can’t perform that action at this time.
0 commit comments