Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve displaying inline frame decorator #15097

Merged

Conversation

mvtec-richter
Copy link
Contributor

@mvtec-richter mvtec-richter commented Mar 3, 2025

What it does

Improve logic when to show inline frame decorator.
Currently, the displaying inline frame decorator depends on local state, that is where the frame decorator previously pointed to. However, this has inconsistent results, when reaching a line from different locations.
Now, the inline frame decorator always is shown, when the column points behind the beginning of a line (excluding white space). I think, this best reflects the objective to show the inline decoration only when it's needed.

Fixes #15095

How to test

Test with any program, which contains lines with multiple statements.
Note: The python debug adapter seems to always set the column to 1, so this cannot be reproduced in python.
However, the javascript debug adapter provides column information.

See #15095 how to reproduce the bug.

Breaking changes

  • This PR introduces breaking changes and requires careful review. If yes, the breaking changes section in the changelog has been updated.

Attribution

Contributed by MVTec Software GmbH

Review checklist

Reminder for reviewers

* the logic to display the inline frame decorator should be independent of local state
* Now, the inline frame decorator is shown, when the column points behind the beginning of a line (excluding whitespace)

Signed-off-by: Florian Richter <[email protected]>
Copy link
Member

@msujew msujew left a comment

Choose a reason for hiding this comment

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

Thank you, that makes much more sense. The change works well for me 👍

@msujew msujew added debug issues that related to debug functionality ui/ux issues related to user interface / user experience labels Mar 3, 2025
@msujew msujew merged commit 3982113 into eclipse-theia:master Mar 3, 2025
10 of 11 checks passed
@github-actions github-actions bot added this to the 1.60.0 milestone Mar 3, 2025
@mvtec-richter mvtec-richter deleted the fix-inline-frame-decorator-logic branch March 3, 2025 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
debug issues that related to debug functionality ui/ux issues related to user interface / user experience
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[debug] Inline frame decoration is not shown when reached from a different line
2 participants