Skip to content

Don't update setting when session is closing - #247

Merged
jreineckearm merged 2 commits into
eclipse-cdt-cloud:mainfrom
omarArm:highlightingCleanUp
Jul 29, 2026
Merged

Don't update setting when session is closing#247
jreineckearm merged 2 commits into
eclipse-cdt-cloud:mainfrom
omarArm:highlightingCleanUp

Conversation

@omarArm

@omarArm omarArm commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

when a debug session is shutting down, settings.json should not be updated again. Instead, the latest setting should remain as is

Fixes: #243 and #244

@omarArm
omarArm requested a review from jreineckearm July 29, 2026 11:59
@omarArm
omarArm force-pushed the highlightingCleanUp branch from 13e455f to f106a3d Compare July 29, 2026 12:00
@jreineckearm jreineckearm changed the title don't update setting when session is closing Don't update setting when session is closing Jul 29, 2026
@jreineckearm

Copy link
Copy Markdown
Contributor

The two issues are fixed with this. But now we are back to seeing Mark Active Source Lines in the context menu after session start, even if that is already active as default behavior (setting in settings.json is undefined). Smells a bit like checking somewhere for falsy instead of false.

@omarArm
omarArm force-pushed the highlightingCleanUp branch from 5cbbc33 to e3d1a82 Compare July 29, 2026 13:05

@jreineckearm jreineckearm left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks, tested various cases

  • switching between multi-core sessions.
  • different starting points (entry in settings.json present, false, true)
  • using debug connections that are not gdb and gdbtarget.

No more unexpected writing of settings.json, context menu entry carries the correct text (i.e. the highlighted context is not correctly updated). I believe we have this now under control.

Approved, will merge soon. Tempted to make a patch release out of this because it still affects users that don't actively use gdbtarget/gdb adapters.

@jreineckearm
jreineckearm merged commit 6bfaef5 into eclipse-cdt-cloud:main Jul 29, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mark Active Source Lines is disabled after ending a debug session

2 participants