Skip to content

Commit e945895

Browse files
committed
add initialConfigurations and configurationSnippet to debuggers
1 parent 7993d44 commit e945895

File tree

1 file changed

+31
-5
lines changed

1 file changed

+31
-5
lines changed

package.json

Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -540,17 +540,43 @@
540540
}
541541
}
542542
},
543-
"initialConfigurations": [],
543+
"initialConfigurations": [
544+
{
545+
"name": "RobotCode: Run .robot file",
546+
"type": "robotcode",
547+
"request": "launch",
548+
"cwd": "${workspaceFolder}",
549+
"target": "${file}"
550+
},
551+
{
552+
"name": "RobotCode: Run all tests",
553+
"type": "robotcode",
554+
"request": "launch",
555+
"cwd": "${workspaceFolder}",
556+
"target": "."
557+
}
558+
],
544559
"configurationSnippets": [
545560
{
546-
"label": "RobotCode: Launch .robot file",
547-
"description": "Add a new configuration for launching Robot Framework Tests.",
561+
"label": "RobotCode: Run .robot file",
562+
"description": "Add a new configuration for launching a single RobotFramework file.",
548563
"body": {
549-
"type": "robotcode",
550564
"name": "RobotCode: Launch .robot file",
565+
"type": "robotcode",
566+
"request": "launch",
567+
"cwd": "^\"\\${workspaceFolder}\"",
568+
"target": "^\"\\${file}\""
569+
}
570+
},
571+
{
572+
"label": "RobotCode: Run all tests",
573+
"description": "Add a new configuration for launching all RobotFramework tests.",
574+
"body": {
575+
"name": "RobotCode: Run all tests",
576+
"type": "robotcode",
551577
"request": "launch",
552578
"cwd": "^\"\\${workspaceFolder}\"",
553-
"target": "^\"\\${file}\""
579+
"target": "."
554580
}
555581
}
556582
]

0 commit comments

Comments
 (0)