File tree Expand file tree Collapse file tree 2 files changed +32
-32
lines changed
tests/robotcode/language_server/robotframework/parts/data/.vscode Expand file tree Collapse file tree 2 files changed +32
-32
lines changed Original file line number Diff line number Diff line change 5
5
"version" : " 0.2.0" ,
6
6
"configurations" : [
7
7
{
8
- "name" : " RobotCode: Two Same " ,
8
+ "name" : " RobotCode: Run Current " ,
9
9
"type" : " robotcode" ,
10
10
"request" : " launch" ,
11
11
"cwd" : " ${workspaceFolder}" ,
12
- //"target": "./tests/playground.robot ./tests/playground.robot"
13
- "args" : [
14
- " ./tests/extras" ,
15
- " ./tests/extras"
16
- ]
12
+ "target" : " ${file}"
17
13
},
18
14
{
19
- "name" : " RobotCode: Run Current " ,
15
+ "name" : " RobotCode: Run All " ,
20
16
"type" : " robotcode" ,
21
17
"request" : " launch" ,
22
18
"cwd" : " ${workspaceFolder}" ,
23
- "target" : " ${file}" ,
24
- "launcherArgs" : [
25
- " -d" ,
26
- " -dp" ,
27
- " 5678" ,
28
- " -dw"
29
- ],
30
- //"attachPython": true,
31
- "pythonConfiguration" : {
32
- "justMyCode" : false
33
- },
34
- "env" : {
35
- "FIRST" : " value"
36
- }
19
+ "target" : " ."
37
20
},
38
21
{
39
- "name" : " RobotCode: Dry Run Current " ,
22
+ "name" : " RobotCode: Default " ,
40
23
"type" : " robotcode" ,
41
24
"request" : " launch" ,
42
- "cwd" : " ${workspaceFolder}" ,
43
- "target" : " ${file}" ,
44
- "attachPython" : true ,
45
- "dryRun" : true ,
46
- "pythonConfiguration" : {
47
- "justMyCode" : false
48
- }
25
+ "purpose" : " default" ,
26
+ "presentation" : {
27
+ "hidden" : true
28
+ },
29
+ "attachPython" : false ,
30
+ "pythonConfiguration" : " RobotCode: Python"
49
31
},
50
32
{
51
- "name" : " RobotCode: Run All " ,
33
+ "name" : " RobotCode: Default " ,
52
34
"type" : " robotcode" ,
53
35
"request" : " launch" ,
54
- "cwd" : " ${workspaceFolder}" ,
55
- "target" : " ."
36
+ "purpose" : " test" ,
37
+ "presentation" : {
38
+ "hidden" : true
39
+ },
40
+ "attachPython" : false ,
41
+ "pythonConfiguration" : " RobotCode: Python" ,
42
+ //"target": "asd"
43
+ },
44
+ {
45
+ "name" : " RobotCode: Python" ,
46
+ "type" : " python" ,
47
+ "request" : " attach" ,
48
+ "presentation" : {
49
+ "hidden" : true
50
+ },
51
+ "justMyCode" : false
56
52
}
57
53
]
58
54
}
Original file line number Diff line number Diff line change @@ -378,6 +378,10 @@ export class DebugManager {
378
378
( v ?. purpose === "test" || ( Array . isArray ( v ?. purpose ) && v ?. purpose ?. indexOf ( "test" ) > - 1 ) )
379
379
) ?? { } ;
380
380
381
+ if ( ! ( "target" in testLaunchConfig ) ) {
382
+ testLaunchConfig . target = "" ;
383
+ }
384
+
381
385
const paths = config . get ( "robot.paths" , [ ] ) ;
382
386
383
387
return vscode . debug . startDebugging (
You can’t perform that action at this time.
0 commit comments