Skip to content

Missing syntax diagnostics in VS #15972

@0101

Description

@0101

Repro steps

Create new Console App project with the following code:

type MyType() =

    member this.Foo(): MyType = {
        Field = 4
    }

    one two three

Expected behavior

We see errors in Error List in VS when we open the file.

Actual behavior

No errors shown when we open the file. But the errors do appear if the file is closed and project is built.

bugerrorpane.mp4

Related information

Appeared somewhere between 17.8 preview 1 and preview 3

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-LangService-DiagnosticsFCS code analysis, diagnostics, red squiggliesBugImpact-High(Internal MS Team use only) Describes an issue with extreme impact on existing code.Tracking-External

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions