@@ -294,41 +294,39 @@ export class TestControllerManager {
294294
295295 const folderName = multiFolders ? ` (${ folder . name } )` : "" ;
296296
297- if ( multiFolders ) {
298- const runProfile = this . testController . createRunProfile (
299- "Run" + folderName ,
300- vscode . TestRunProfileKind . Run ,
301- async ( request , token ) => this . runTests ( request , token , undefined ) ,
302- false ,
303- folderTag ,
297+ const runProfile = this . testController . createRunProfile (
298+ "Run" + folderName ,
299+ vscode . TestRunProfileKind . Run ,
300+ async ( request , token ) => this . runTests ( request , token , undefined ) ,
301+ false ,
302+ folderTag ,
303+ ) ;
304+
305+ runProfile . configureHandler = ( ) => {
306+ this . configureRunProfile ( ) . then (
307+ ( _ ) => undefined ,
308+ ( _ ) => undefined ,
304309 ) ;
310+ } ;
305311
306- runProfile . configureHandler = ( ) => {
307- this . configureRunProfile ( ) . then (
308- ( _ ) => undefined ,
309- ( _ ) => undefined ,
310- ) ;
311- } ;
312+ this . runProfiles . push ( runProfile ) ;
312313
313- this . runProfiles . push ( runProfile ) ;
314+ const debugProfile = this . testController . createRunProfile (
315+ "Debug" + folderName ,
316+ vscode . TestRunProfileKind . Debug ,
317+ async ( request , token ) => this . runTests ( request , token , undefined ) ,
318+ false ,
319+ folderTag ,
320+ ) ;
314321
315- const debugProfile = this . testController . createRunProfile (
316- "Debug" + folderName ,
317- vscode . TestRunProfileKind . Debug ,
318- async ( request , token ) => this . runTests ( request , token , undefined ) ,
319- false ,
320- folderTag ,
322+ debugProfile . configureHandler = ( ) => {
323+ this . configureRunProfile ( ) . then (
324+ ( _ ) => undefined ,
325+ ( _ ) => undefined ,
321326 ) ;
327+ } ;
322328
323- debugProfile . configureHandler = ( ) => {
324- this . configureRunProfile ( ) . then (
325- ( _ ) => undefined ,
326- ( _ ) => undefined ,
327- ) ;
328- } ;
329-
330- this . runProfiles . push ( debugProfile ) ;
331- }
329+ this . runProfiles . push ( debugProfile ) ;
332330
333331 const configurations = vscode . workspace
334332 . getConfiguration ( "launch" , folder )
0 commit comments