Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ export default class OpenDebuggerKeyboardHandler {
`Multiple debug targets available, please select:\n ${targets
.slice(0, 9)
.map(
({title}, i) =>
`${styleText(['white', 'inverse'], ` ${i + 1} `)} - "${title}"`,
({title, description}, i) =>
`${styleText(['white', 'inverse'], ` ${i + 1} `)} - "${title} (${description})"`,
Comment on lines +110 to +111
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps we could tweak this to disambiguate only when there are conflicting titles in the target list. This would prevent showing the verbose description field in the default case.

Suggested change
({title, description}, i) =>
`${styleText(['white', 'inverse'], ` ${i + 1} `)} - "${title} (${description})"`,
const hasDuplicateTitles =
new Set(targets.map(target => target.title)).size < targets.length;
this.#setTerminalMenu(
`Multiple debug targets available, please select:\n ${targets
.slice(0, 9)
.map(
({title, description}, i) =>
`${styleText(['white', 'inverse'], ` ${i + 1} `)} - "${title}"${hasDuplicateTitles ? ` (${description})` : ''}`,
)
.join('\n ')}`,
);

Copy link
Contributor Author

@dprevost-LMI dprevost-LMI Oct 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see that the PR was "imported", which I'm unsure what does that mean. I do not mind doing the above. @cortinico let me know if this is required and can be done

Copy link
Member

@huntie huntie Oct 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah this is feedback from me on this PR — it goes through a second review once imported. If you push changes here, we'll re-import :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yup basically what @huntie said

)
.join('\n ')}`,
);
Expand Down
Loading