Skip to content

fix: remove dead CSS referencing undefined inlineChat.regionHighlight#308926

Open
yogeshwaran-c wants to merge 2 commits intomicrosoft:mainfrom
yogeshwaran-c:fix/notebook-remove-dead-inline-chat-css
Open

fix: remove dead CSS referencing undefined inlineChat.regionHighlight#308926
yogeshwaran-c wants to merge 2 commits intomicrosoft:mainfrom
yogeshwaran-c:fix/notebook-remove-dead-inline-chat-css

Conversation

@yogeshwaran-c
Copy link
Copy Markdown
Contributor

Summary

Fixes #229281

The inlineChat.regionHighlight theme color was removed when the old inline chat implementation was cleaned up (in #286503), but three CSS rules in notebookCellChat.css still referenced the --vscode-inlineChat-regionHighlight CSS variable. These rules targeted classes (inline-chat-block-selection, inline-chat-diff-widget, inline-chat-newfile-widget) that are no longer applied by any TypeScript code, making them dead code.

  • Remove 3 dead CSS rules from notebookCellChat.css that reference the undefined variable
  • Remove the stale --vscode-inlineChat-regionHighlight entry from vscode-known-variables.json

Test plan

  • Run ./scripts/test-documentation.sh or the stylelint check and verify no Unknown variable: --vscode-inlineChat-regionHighlight warnings
  • Verify notebooks still render correctly (the removed rules were never applied since the old inline chat controller was removed)

The source location annotation (e.g. 'repl:1') in the debug console
output was included in native text selections, causing it to appear
in copied text when selecting across multiple output lines.

Add user-select: none to the .source element so the source annotation
is excluded from text selection while remaining visible and clickable.

Fixes microsoft#275702
…hlight variable

The `inlineChat.regionHighlight` theme color was removed when the old
inline chat implementation was cleaned up, but three CSS rules in
notebookCellChat.css still referenced the `--vscode-inlineChat-regionHighlight`
CSS variable. These rules targeted classes (inline-chat-block-selection,
inline-chat-diff-widget, inline-chat-newfile-widget) that are no longer
applied by any TypeScript code, making them dead code.

Remove the three dead CSS rules and the stale entry from
vscode-known-variables.json.

Fixes microsoft#229281
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.

On commit: Unknown variable: --vscode-inlineChat-regionHighlight

2 participants