Skip to content

Fixes issue with optional chaining causing incorrect highlighting. - #106

Open
RadhiRasho wants to merge 1 commit into
zed-extensions:mainfrom
RadhiRasho:optional-chaining-fix
Open

RadhiRasho wants to merge 1 commit into
zed-extensions:mainfrom
RadhiRasho:optional-chaining-fix

Conversation

@RadhiRasho

@RadhiRasho RadhiRasho commented Oct 19, 2026 •

Copy link
Copy Markdown

Fixes an issue which I notice was causing incorrect styling when using the optional chaining.

This is a fix specifically for the Zed C# extension. I wanted to do this here initially as I'm not sure how long the actual changes to the main tree-sitter-c-sharp project will take to get merged as a part of this.

This is an issue with the main project itself, and not just the Zed C# extension.

Below is a video demonstrating the issue with the current version and the local version which has the fix for it:

Zed_vAnQiDGpdb.mp4

Again, this is something that is fixed by simply turning on the Semantic Tokens setting to either "Combined" or "Full" which relies heavily on the LSP itself, rather than tree-sitter. However, since by default that setting is set to "Off", I believe there should be something to address this issue within the tree-sitter highlighting.

I do believe this is still something that should be resolved more upstream rather than scoped to the Zed extension itself.

Fixes following issue which I opened: #105

@cla-bot cla-bot Bot added the cla-signed label Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant