Skip to content

Gray out excluded code#3295

Open
sorin-bolos wants to merge 3 commits into
microsoft:mainfrom
sorin-bolos:gray-out-excluded-code
Open

Gray out excluded code#3295
sorin-bolos wants to merge 3 commits into
microsoft:mainfrom
sorin-bolos:gray-out-excluded-code

Conversation

@sorin-bolos
Copy link
Copy Markdown

@sorin-bolos sorin-bolos commented Jun 5, 2026

Closes #1966

Grays out code that is excluded via the @config annotation.
Applies to VS Code and Playground. Does not apply to notebooks

Using Hint severity + the Unnecessary tag means the code is greyed inline without cluttering the Problems panel — matching the Rust behavior shown in the issue

base unrestricted image image

Disclamer: used Claude Code

@minestarks
Copy link
Copy Markdown
Member

@sorin-bolos thank you for the PR! I'm taking a look shortly.

Copy link
Copy Markdown
Member

@minestarks minestarks left a comment

Choose a reason for hiding this comment

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

Thank you! A couple minor comments.

Comment thread source/playground/src/editor.tsx
Comment thread source/language_service/src/protocol.rs Outdated
Comment thread source/language_service/src/state.rs Outdated
@sorin-bolos sorin-bolos requested a review from minestarks June 6, 2026 12:05
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.

Grey out conditionally compiled items in the editor when they don't match the current target profile

2 participants