🚀 Clear assertion greyed-out lines on restart and highlight issue locations#232
Merged
DRovara merged 170 commits intomunich-quantum-toolkit:mainfrom Mar 11, 2026
Merged
🚀 Clear assertion greyed-out lines on restart and highlight issue locations#232DRovara merged 170 commits intomunich-quantum-toolkit:mainfrom
DRovara merged 170 commits intomunich-quantum-toolkit:mainfrom
Conversation
a179094 to
7ea1084
Compare
fdfd0c8 to
0606738
Compare
DRovara
requested changes
Feb 23, 2026
Collaborator
DRovara
left a comment
There was a problem hiding this comment.
Hi @svenjeschmitt-ops, here's the latest review.
There's just 2 remaining points: the open discussion and the unneeded member variable. It would be cool if we could fix that soon so that the PR can be merged before it deviates too much from the main branch.
DRovara
approved these changes
Mar 9, 2026
Collaborator
DRovara
left a comment
There was a problem hiding this comment.
Awesome, those changes look great and the PR now looks good to me.
I believe the branch can now be merged.
@coderabbitai, do you have any final suggestions for stuff we should double-check?
We handled all necessary changes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This pull request improves the debugging highlight functionality and fixes an issue where greyed-out highlights were not correctly reset between executions.
When an issue is detected in the code, the extension highlights the affected line in red and displays a descriptive error message explaining the nature of the problem. This visual feedback helps users quickly identify both the location of the error and its underlying cause.
A second part of the implementation concerns the assertion functionality. After an assertion failure, the extension greys out all lines of code that cannot have caused the error. While this behaviour is intended, the greyed-out highlights were previously not cleared when a new execution started. As a result, lines remained greyed out until the editor was closed and reopened.
Overall, the highlighting functionality provides an efficient way to show where an error occurred and what caused it. This change introduces an explicit reset of all greyed-out highlights on launch and restart events, ensuring that each execution starts with a clean editor state.
Fixes #(issue)
Checklist: