Skip to content

Gray out excluded code#3295

Merged
minestarks merged 3 commits into
microsoft:mainfrom
sorin-bolos:gray-out-excluded-code
Jun 9, 2026
Merged

Gray out excluded code#3295
minestarks merged 3 commits into
microsoft:mainfrom
sorin-bolos:gray-out-excluded-code

Conversation

@sorin-bolos

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

Copy link
Copy Markdown
Contributor

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.

@minestarks minestarks left a comment

Copy link
Copy Markdown
Member

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
@minestarks minestarks added this pull request to the merge queue Jun 9, 2026
@minestarks

Copy link
Copy Markdown
Member

@sorin-bolos thank you again, and congrats! I queued the PR to merge.

In the meantime could you please leave a comment at issue #1966 so that GitHub will let me assign it to you?

Merged via the queue into microsoft:main with commit eb27d7f Jun 9, 2026
12 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.

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

2 participants