Skip to content

C# 10 File-scoped namespace declaration syntax coloring bug #229

@edsulaiman

Description

@edsulaiman

Details

What editor are you seeing the problem in?
Visual Studio Code

What version of the editor are you using?
Version: 1.62.2 (system setup)
Commit: 3a6960b964327f0e3882ce18fcebd07ed191b316
Date: 2021-11-11T20:56:38.428Z
Electron: 13.5.2
Chrome: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Windows_NT x64 10.0.19043

What color theme are you using?
Atom One Dark

Repro

  1. Write a class using C# 10 File-scoped namespace declaration

namespace with braces
image

namespace without braces
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions