dotnet / roslyn

The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
https://docs.microsoft.com/dotnet/csharp/roslyn-sdk/
MIT License
18.96k stars 4.02k forks source link

VB Editor : Opening #regions via "... #55048

Open vsfeedback opened 3 years ago

vsfeedback commented 3 years ago

This issue has been moved from a ticket on Developer Community.


[severity:It's more difficult to complete my work] (1) The opening of all subsequent #regions via "... does not solve the problem. Whenever the sum of all " " " is odd, all subsequent regions are opened. (2) Keyboard improvement suggestion (Tools\Options\Keyboard): Make non-visible characters of a character set visible via AltGr Key. This would make the SourceCode more understandable, even through your own fonts. (3) Would it be possible to implement the mentioned improvements in VS 2017 ?


Original Comments

Feedback Bot on 7/15/2021, 00:43 AM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.


Original Solutions

(no solutions)

sharwell commented 2 years ago

Possibly related to #39808

This issue occurs when " (an unterminated string) is typed before a #Region directive in a Visual Basic source file. Since VB strings can span multiple lines, the unterminated string absorbs the #Region line and removes the block structure tags from it, causing the region to expand. The solution for this is to carry forward block structure tags which overlap with string literals if/when the last string literal in the VB document is not terminated.

MarvusMedia commented 3 months ago

All the more reason to suspend syntax checking until the caret is moved to another line, as VBE used to do. Reduces IDE crashes, too.