diff --git a/CHANGELOG.md b/CHANGELOG.md index 4fbade8b..2a346b6d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -114,6 +114,7 @@ All notable version changes will be recorded in this file. **Improve**: - `GNU Arm Toolchain`: Support new mcpu: `cortex-m52, cortex-m55, cortex-m85`. - `unify_builder`: Optimize builder speed. + - `File Options`: Add memory assignment feature for `AC5`, `AC6` toolchain. Thanks the contributor [Deadline039](https://github.com/Deadline039) - `File Options GUI`: Update the translation text. Optimize layout. - `DebugConfig Generator GUI`: Change gui element width. Sort the option result list. diff --git a/src/extension.ts b/src/extension.ts index a6512ac2..6b96bda0 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -2203,6 +2203,18 @@ class ExternalDebugConfigProvider implements vscode.DebugConfigurationProvider { if (m && m.length > 1) { dbgCfg['probe'] = m[1]; } + // parse '--chip-description-path ' (support quoted path) + // examples: + // --chip-description-path /path/to/desc.yaml + // --chip-description-path "/path/with spaces/desc.yaml" + m = /--chip-description-path\s+("[^"]+"|[^\s]+)/.exec(flasherCfg.otherOptions); + if (m && m.length > 1) { + let p = m[1]; + // strip surrounding quotes if present + if (p.startsWith('"') && p.endsWith('"')) + p = p.substring(1, p.length - 1); + dbgCfg['chipDescriptionPath'] = p; + } } result.push(dbgCfg); result.push(newAttachDebugCfg(dbgCfg));