Skip to content

Commit

Permalink
debug: display proper config on startup (#12480)
Browse files Browse the repository at this point in the history
The commit fixes an issue where the current debug launch configuration was not persisted and displayed on startup, and would always default back to the first item in the list. The change now properly sets the configuration.

Signed-off-by: Patrick Chuong <pchuong@ti.com>
  • Loading branch information
pchuong authored May 23, 2023
1 parent 96c8f90 commit 782260e
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,13 @@ export class DebugConfigurationSelect extends React.Component<DebugConfiguration
});
}

override componentDidUpdate(): void {
// synchronize the currentValue with the selectComponent value
if (this.selectRef.current?.value !== this.currentValue) {
this.refreshDebugConfigurations();
}
}

override componentDidMount(): void {
this.refreshDebugConfigurations();
}
Expand Down

0 comments on commit 782260e

Please sign in to comment.