@@ -160,5 +160,34 @@ for (let file of FILES) {
160160 await tsServer . openFile ( file . getEditsForFileRename . oldFilePath ) ;
161161 const getEditsForFileRenameResponse = await tsServer . getEditsForFileRename ( file . getEditsForFileRename . oldFilePath , file . getEditsForFileRename . newFilePath ) ;
162162 console . log ( 'getEditsForFileRenameResponse' , JSON . stringify ( getEditsForFileRenameResponse ) ) ;
163+
164+ await tsServer . openFile ( file . selectionRange . filePath ) ;
165+ const selectionRangeResponse = await tsServer . selectionRange ( file . selectionRange . filePath , file . selectionRange . locations ) ;
166+ console . log ( 'selectionRangeResponse' , JSON . stringify ( selectionRangeResponse ) ) ;
167+
168+ await tsServer . openFile ( file . toggleLineComment . filePath ) ;
169+ const toggleLineCommentResponse = await tsServer . toggleLineComment ( file . toggleLineComment . filePath , file . toggleLineComment . startLine , file . toggleLineComment . startOffset , file . toggleLineComment . endLine , file . toggleLineComment . endOffset ) ;
170+ console . log ( 'toggleLineCommentResponse' , JSON . stringify ( toggleLineCommentResponse ) ) ;
171+
172+ const toggleMultilineCommentResponse = await tsServer . toggleMultilineComment ( file . toggleLineComment . filePath , file . toggleLineComment . startLine , file . toggleLineComment . startOffset , file . toggleLineComment . endLine , file . toggleLineComment . endOffset ) ;
173+ console . log ( 'toggleMultilineCommentResponse' , JSON . stringify ( toggleMultilineCommentResponse ) ) ;
174+
175+ const commentSelectionResponse = await tsServer . commentSelection ( file . toggleLineComment . filePath , file . toggleLineComment . startLine , file . toggleLineComment . startOffset , file . toggleLineComment . endLine , file . toggleLineComment . endOffset ) ;
176+ console . log ( 'commentSelectionResponse' , JSON . stringify ( commentSelectionResponse ) ) ;
177+
178+ const uncommentSelectionResponse = await tsServer . uncommentSelection ( file . toggleLineComment . filePath , file . toggleLineComment . startLine , file . toggleLineComment . startOffset , file . toggleLineComment . endLine , file . toggleLineComment . endOffset ) ;
179+ console . log ( 'uncommentSelectionResponse' , JSON . stringify ( uncommentSelectionResponse ) ) ;
180+
181+ await tsServer . openFile ( file . prepareCallHierarchy . filePath ) ;
182+ const prepareCallHierarchyResponse = await tsServer . prepareCallHierarchy ( file . prepareCallHierarchy . filePath , file . prepareCallHierarchy . line , file . prepareCallHierarchy . offset ) ;
183+ console . log ( 'prepareCallHierarchyResponse' , JSON . stringify ( prepareCallHierarchyResponse ) ) ;
184+
185+ await tsServer . openFile ( file . prepareCallHierarchy . filePath ) ;
186+ const provideCallHierarchyIncomingCallsResponse = await tsServer . provideCallHierarchyIncomingCalls ( file . prepareCallHierarchy . filePath , file . prepareCallHierarchy . line , file . prepareCallHierarchy . offset ) ;
187+ console . log ( 'provideCallHierarchyIncomingCallsResponse' , JSON . stringify ( provideCallHierarchyIncomingCallsResponse ) ) ;
188+
189+ await tsServer . openFile ( file . prepareCallHierarchy . filePath ) ;
190+ const provideCallHierarchyOutgoingCallsResponse = await tsServer . provideCallHierarchyOutgoingCalls ( file . prepareCallHierarchy . filePath , file . prepareCallHierarchy . line , file . prepareCallHierarchy . offset ) ;
191+ console . log ( 'provideCallHierarchyOutgoingCallsResponse' , JSON . stringify ( provideCallHierarchyOutgoingCallsResponse ) ) ;
163192}
164193//tsServer.exitServer();
0 commit comments