Skip to content

Commit e5b3564

Browse files
committed
remove leading and tailing '"' for jlinkscript args in debug config
1 parent a1b0b98 commit e5b3564

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/extension.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2081,7 +2081,9 @@ class ExternalDebugConfigProvider implements vscode.DebugConfigurationProvider {
20812081
// -JLinkScriptFile <ScriptFilePath>
20822082
m = /-JLinkScriptFile ([^\s"]+|"[^"]+")/.exec(flasherCfg.otherCmds);
20832083
if (m && m.length > 1)
2084-
dbgCfg['jlinkscript'] = m[1];
2084+
dbgCfg['jlinkscript'] = m[1].startsWith('"')
2085+
? m[1].substring(1, m[1].length - 1)
2086+
: m[1];
20852087
}
20862088
result.push(dbgCfg);
20872089
result.push(newAttachDebugCfg(dbgCfg));

0 commit comments

Comments
 (0)