Skip to content

Conversation

chsienki
Copy link
Member

@chsienki chsienki commented Mar 24, 2025

This is a fix for https://devdiv.visualstudio.com/DevDiv/_workitems/edit/2414981/ where writing an @ symbol does not give full IntelliSense, and a follow up from #10965 which only fixed it for components.

For IntelliSense to work correctly, we need to emit a zero-length line pragma for the empty region following the @ symbol.

This change updates parsing so that in the error case we always emit a marker token as part of the empty transition. We previously only did this in design time. That ensures we have somewhere to emit the empty line pragma and allows the tooling to know it's in a CSharp context and offer the correct IntelliSense.

Though not used in this PR, it also fixes an issue with zerowidthspan calculations for spans that do not begin at character offset 0.

@chsienki chsienki requested a review from a team as a code owner March 24, 2025 18:43
@jjonescz jjonescz added the area-compiler Umbrella for all compiler issues label Mar 25, 2025
@chsienki chsienki requested review from 333fred and jjonescz March 25, 2025 17:15
@chsienki
Copy link
Member Author

@333fred @jjonescz Clearing reviews as I've changed the approach. Updated description to match. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-compiler Umbrella for all compiler issues New Feature: Fuse

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants