File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2201,6 +2201,18 @@ class ExternalDebugConfigProvider implements vscode.DebugConfigurationProvider {
22012201 if ( m && m . length > 1 ) {
22022202 dbgCfg [ 'probe' ] = m [ 1 ] ;
22032203 }
2204+ // parse '--chip-description-path <path>' (support quoted path)
2205+ // examples:
2206+ // --chip-description-path /path/to/desc.yaml
2207+ // --chip-description-path "/path/with spaces/desc.yaml"
2208+ m = / - - c h i p - d e s c r i p t i o n - p a t h \s + ( " [ ^ " ] + " | [ ^ \s ] + ) / . exec ( flasherCfg . otherOptions ) ;
2209+ if ( m && m . length > 1 ) {
2210+ let p = m [ 1 ] ;
2211+ // strip surrounding quotes if present
2212+ if ( p . startsWith ( '"' ) && p . endsWith ( '"' ) )
2213+ p = p . substring ( 1 , p . length - 1 ) ;
2214+ dbgCfg [ 'chipDescriptionPath' ] = p ;
2215+ }
22042216 }
22052217 result . push ( dbgCfg ) ;
22062218 result . push ( newAttachDebugCfg ( dbgCfg ) ) ;
You can’t perform that action at this time.
0 commit comments