Skip to content

Remove dead code#295884

Merged
roblourens merged 1 commit intomainfrom
roblou/proposed-dormouse
Feb 17, 2026
Merged

Remove dead code#295884
roblourens merged 1 commit intomainfrom
roblou/proposed-dormouse

Conversation

@roblourens
Copy link
Member

These changes were included with #295402, but shouldn't have been, due to multitasking in one workspace.

Copilot AI review requested due to automatic review settings February 17, 2026 23:14
@roblourens roblourens enabled auto-merge February 17, 2026 23:14
@roblourens roblourens self-assigned this Feb 17, 2026
@vs-code-engineering vs-code-engineering bot added this to the February 2026 milestone Feb 17, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR removes dead code that was accidentally included in PR #295402 (which focused on avoiding listener leak warnings). The changes remove unused TypeScript methods and CSS selectors that don't actually match any DOM elements in the chat widget.

Changes:

  • Removed unused renderParsedRequestToPlainText method and its helper getDecorationTitle from ChatMarkdownDecorationsRenderer
  • Removed CSS selectors for direct SPAN children of .rendered-markdown in inline-progress contexts, which wouldn't match since markdown parsers wrap HTML in P tags

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/vs/workbench/contrib/chat/browser/widget/media/chat.css Removed CSS selectors for .rendered-markdown:last-of-type > SPAN:empty that would never match due to markdown P-tag wrapping
src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownDecorationsRenderer.ts Removed unused renderParsedRequestToPlainText and getDecorationTitle methods with no references in codebase

@roblourens roblourens merged commit 67da8fb into main Feb 17, 2026
24 checks passed
@roblourens roblourens deleted the roblou/proposed-dormouse branch February 17, 2026 23:28
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.

2 participants