-
Notifications
You must be signed in to change notification settings - Fork 677
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Statement on first line in top-level statements file is treated incorrectly when partial class Program
definition is present
#7762
Comments
To add a use-case for a // ...
partial class Program
{
[GeneratedRegex(@"...")]
private partial Regex MyRegex { get; }
} |
documentSymbols response from the repro code.
Testing with a class name other than Program. for example: int i;
partial class Test; The response is
Program being "special" brings along the On a tangential note, I can see how it would be nice to include local functions in the documentSymbols, especially for top-level statements. |
Thinking about this more, the |
Tested this in VS proper and there are no issues with Sticky Scroll. My hunch is that VS Code is using a combination of |
Environment
VS Code version: 1.95.2,
e8653663e8840adaf45af01eab5c627a5af81807
, x64C# Extension version: v2.55.21
Steps to reproduce
Program.cs
) file.int i;
being treated incorrectly; it is "folded away":Expected Behavior
The statement on the first line is not treated incorrectly like this.
Actual Behavior
The statement is in an extra "container", navigating to the line with the cursor hides the cursor behind that container. The contents of the line can still be edited. Clicking the container does not yield a response.
The text was updated successfully, but these errors were encountered: