@@ -15,7 +15,6 @@ import {
1515 TextDocument ,
1616 Uri ,
1717} from 'vscode' ;
18- import { CommandSource } from '../../common/application/types' ;
1918import { IWorkspaceService } from '../../../client/common/application/types' ;
2019import { IFileSystem } from '../../../client/common/platform/types' ;
2120import { IServiceContainer } from '../../../client/ioc/types' ;
@@ -167,12 +166,22 @@ export class TestFileCodeLensProvider implements CodeLensProvider {
167166 new CodeLens ( range , {
168167 title : getTestStatusIcon ( cls . status ) + constants . Text . CodeLensRunUnitTest ,
169168 command : constants . Commands . Tests_Run ,
170- arguments : [ undefined , CommandSource . codelens , file , < TestsToRun > { testSuite : [ cls ] } ] ,
169+ arguments : [
170+ undefined ,
171+ constants . CommandSource . codelens ,
172+ file ,
173+ < TestsToRun > { testSuite : [ cls ] } ,
174+ ] ,
171175 } ) ,
172176 new CodeLens ( range , {
173177 title : getTestStatusIcon ( cls . status ) + constants . Text . CodeLensDebugUnitTest ,
174178 command : constants . Commands . Tests_Debug ,
175- arguments : [ undefined , CommandSource . codelens , file , < TestsToRun > { testSuite : [ cls ] } ] ,
179+ arguments : [
180+ undefined ,
181+ constants . CommandSource . codelens ,
182+ file ,
183+ < TestsToRun > { testSuite : [ cls ] } ,
184+ ] ,
176185 } ) ,
177186 ] ;
178187 }
@@ -251,12 +260,12 @@ function getFunctionCodeLens(
251260 new CodeLens ( range , {
252261 title : getTestStatusIcon ( fn . status ) + constants . Text . CodeLensRunUnitTest ,
253262 command : constants . Commands . Tests_Run ,
254- arguments : [ undefined , CommandSource . codelens , file , < TestsToRun > { testFunction : [ fn ] } ] ,
263+ arguments : [ undefined , constants . CommandSource . codelens , file , < TestsToRun > { testFunction : [ fn ] } ] ,
255264 } ) ,
256265 new CodeLens ( range , {
257266 title : getTestStatusIcon ( fn . status ) + constants . Text . CodeLensDebugUnitTest ,
258267 command : constants . Commands . Tests_Debug ,
259- arguments : [ undefined , CommandSource . codelens , file , < TestsToRun > { testFunction : [ fn ] } ] ,
268+ arguments : [ undefined , constants . CommandSource . codelens , file , < TestsToRun > { testFunction : [ fn ] } ] ,
260269 } ) ,
261270 ] ;
262271 }
@@ -275,12 +284,12 @@ function getFunctionCodeLens(
275284 new CodeLens ( range , {
276285 title : `${ getTestStatusIcons ( functions ) } ${ constants . Text . CodeLensRunUnitTest } (Multiple)` ,
277286 command : constants . Commands . Tests_Picker_UI ,
278- arguments : [ undefined , CommandSource . codelens , file , functions ] ,
287+ arguments : [ undefined , constants . CommandSource . codelens , file , functions ] ,
279288 } ) ,
280289 new CodeLens ( range , {
281290 title : `${ getTestStatusIcons ( functions ) } ${ constants . Text . CodeLensDebugUnitTest } (Multiple)` ,
282291 command : constants . Commands . Tests_Picker_UI_Debug ,
283- arguments : [ undefined , CommandSource . codelens , file , functions ] ,
292+ arguments : [ undefined , constants . CommandSource . codelens , file , functions ] ,
284293 } ) ,
285294 ] ;
286295}
0 commit comments