Skip to content

Get syntax errors/invalid colorization on project load when you've customized the version #4303

Open
@davkean

Description

@davkean

When you've customized the language version, or you have a restored document with a #if DEBUG (and DEBUG is the active configuration), you get wrong colorization in source files, or get incorrect syntax errors in the error list:

image

This is because correct conditional constants and language version only gets set once a design-time build has completed. We should fix that and set all parse options up-front and during evaluation.

Metadata

Metadata

Assignees

Labels

Feature-Language-ServicePopulating the Roslyn workspace with references, source files, analyzers, etcTriage-ApprovedReviewed and prioritized

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions