File tree 2 files changed +19
-1
lines changed
2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 412
412
"default" : true ,
413
413
"markdownDescription" : " Enable/disable inlay hints for namespaces." ,
414
414
"scope" : " resource"
415
+ },
416
+ "robotcode.testExplorer.enabled" : {
417
+ "type" : " boolean" ,
418
+ "default" : true ,
419
+ "description" : " Whether to show robot tests in the test explorer. You may want to disable this if you are using another tool to run robot tests." ,
420
+ "scope" : " resource"
415
421
}
416
422
}
417
423
},
1464
1470
"webpack" : " ^5.90.0" ,
1465
1471
"webpack-cli" : " ^5.1.4"
1466
1472
}
1467
- }
1473
+ }
Original file line number Diff line number Diff line change @@ -194,6 +194,18 @@ export class TestControllerManager {
194
194
( _ ) => undefined ,
195
195
) ;
196
196
} ) ,
197
+ vscode . workspace . onDidChangeConfiguration ( ( event ) => {
198
+ const setting = "robotcode.testExplorer" ;
199
+ for ( const ws of vscode . workspace . workspaceFolders ?? [ ] ) {
200
+ if ( event . affectsConfiguration ( setting , ws ) ) {
201
+ if ( vscode . workspace . getConfiguration ( setting , ws ) . get < boolean > ( "enabled" ) ) {
202
+ this . refresh ( ) . catch ( ( _ ) => undefined ) ;
203
+ } else {
204
+ if ( ws ) this . removeWorkspaceFolderItems ( ws ) ;
205
+ }
206
+ }
207
+ }
208
+ } ) ,
197
209
vscode . workspace . onDidCloseTextDocument ( ( document ) => this . refreshDocument ( document ) ) ,
198
210
vscode . workspace . onDidSaveTextDocument ( ( document ) => this . refreshDocument ( document ) ) ,
199
211
vscode . workspace . onDidOpenTextDocument ( ( document ) => this . refreshDocument ( document ) ) ,
You can’t perform that action at this time.
0 commit comments