Skip to content

Commit 42e528d

Browse files
committed
feat(debugger): possibility to disable the target . in a robotcode launch configurations with null, to append your own targets in args
1 parent 22526e5 commit 42e528d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@
824824
"launch": {
825825
"properties": {
826826
"target": {
827-
"type": "string",
827+
"type": ["string", "null"],
828828
"description": "The .robot file or a folder containing .robot files to be launched.",
829829
"default": "${file}"
830830
},

robotcode/debugger/launcher/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ async def _launch(
235235
if target:
236236
run_args.append(target)
237237

238-
if not paths and not target:
238+
if target is not None and not paths and not target:
239239
run_args.append(".")
240240

241241
env = {k: ("" if v is None else str(v)) for k, v in env.items()} if env else {}

0 commit comments

Comments
 (0)