Skip to content

Commit 8746faa

Browse files
committed
fix(vscode): correct appending profile options to robotcode commands
1 parent b554a63 commit 8746faa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

vscode-client/extension/languageclientsmanger.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ export class LanguageClientsManager {
462462
return getAvailablePort(["127.0.0.1"]);
463463
};
464464

465-
const profiles = config.get<string[]>("profiles", []).flatMap((v) => ["--profile", v]);
465+
const profiles = config.get<string[]>("profiles", []).flatMap((v) => ["-p", v]);
466466

467467
return {
468468
run: {

vscode-client/extension/pythonmanger.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ export class PythonManager {
265265
...(format ? ["--format", format] : []),
266266
...(noColor ? ["--no-color"] : []),
267267
...(noPager ? ["--no-pager"] : []),
268-
...(profiles !== undefined ? profiles.flatMap((v) => ["--p", v]) : []),
268+
...(profiles !== undefined ? profiles.flatMap((v) => ["-p", v]) : []),
269269
...args,
270270
];
271271
return { pythonCommand, final_args };

0 commit comments

Comments
 (0)