dotnet / dotnet/vscode-csharp

Comment after preprocessor directive causes all contents to become `meta.preprocessor`

Open
#8,307 1 comment 0 reactions 0 assignees View on GitHub
Bug help-wanted
Dominant language
TypeScript
Stars
3.1k
Forks
737
Avg merge
18h 40m
Merged PRs (30d)
31

Description

### Steps to Reproduce
```cs
#if true //
_ = 0;
#endif
```

Without preprocessor directive & comment:
![semi-no-preprocessor](https://github.com/user-attachments/assets/ec45fc5a-96f1-4f56-98dd-b748173eedec)

With preprocessor directive & comment:
![semi-with-preprocessor](https://github.com/user-attachments/assets/baaa0054-df85-498b-bb5e-a671bdeb27f8)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.