@@ -946,7 +946,7 @@ export function activate(context: ExtensionContext): VSNetBeansAPI {
946946 debugConfig [ 'testRun' ] = testRun ;
947947
948948 const workspaceFolder = vscode . workspace . getWorkspaceFolder ( docUri ) ;
949- if ( project || testRun ) {
949+ if ( project ) {
950950 debugConfig [ 'projectFile' ] = docUri . toString ( ) ;
951951 debugConfig [ 'project' ] = true ;
952952 } else {
@@ -993,6 +993,12 @@ export function activate(context: ExtensionContext): VSNetBeansAPI {
993993 context . subscriptions . push ( commands . registerCommand ( COMMAND_PREFIX + '.debug.single' , async ( uri , methodName ?, launchConfiguration ?, nestedClass ?) => {
994994 await runDebug ( false , false , uri , methodName , nestedClass , launchConfiguration ) ;
995995 } ) ) ;
996+ context . subscriptions . push ( commands . registerCommand ( COMMAND_PREFIX + '.run.test.single' , async ( uri , methodName ?, launchConfiguration ?, nestedClass ?) => {
997+ await runDebug ( true , true , uri , methodName , nestedClass , launchConfiguration ) ;
998+ } ) ) ;
999+ context . subscriptions . push ( commands . registerCommand ( COMMAND_PREFIX + '.debug.test.single' , async ( uri , methodName ?, launchConfiguration ?, nestedClass ?) => {
1000+ await runDebug ( false , true , uri , methodName , nestedClass , launchConfiguration ) ;
1001+ } ) ) ;
9961002 context . subscriptions . push ( commands . registerCommand ( COMMAND_PREFIX + '.project.run' , async ( node , launchConfiguration ?) => {
9971003 return runDebug ( true , false , contextUri ( node ) ?. toString ( ) || '' , undefined , undefined , launchConfiguration , true ) ;
9981004 } ) ) ;
0 commit comments