mirror of https://github.com/icsharpcode/ILSpy.git
Browse Source
Tidies up the bookmarks feature in response to review feedback: - BookmarkMargin subscribed to the shared BookmarkManager.Changed event in its constructor and never unsubscribed, so the singleton kept a closed tab's margin (and its pulse timer) alive. The subscription now follows the margin's time in the visual tree. - LineHighlightAdorner.DisplayLineHighlight always added a fresh renderer with its own timers; navigating repeatedly within the highlight lifetime stacked them. Existing highlights are now dismissed first. - ApplyOutput always built a new DecompiledDebugInfo, contradicting the property's documented contract (null for non-C#, the Empty sentinel when C# yielded no methods). It now honors that contract. - The throwaway StringWriter used for sequence-point capture is disposed. The MemberName doc comment still described a stale-token guard that was deliberately removed: a token can resolve to a compiler-generated member (e.g. a local function) whose name differs from the stored display name, and a name check would wrongly reject a valid navigation. Comment fixed to match the actual token-only navigation. Assisted-by: Claude:claude-opus-4-8:Claude Codepull/3839/head
4 changed files with 33 additions and 6 deletions
Loading…
Reference in new issue