dotnet / dotnet/csharp-tmLanguage

Syntax highlighting breaks when opening bracket of a method is placed in a new line

Aperta
#63 5 commenti 1 reazione 0 assegnatari Vedi su GitHub
Bug
Lingua principale
TypeScript
Stelle
78
Fork
43
Merge medio
34m
PR unite (30g)
1

Descrizione

_From @zeroskyx on May 17, 2017 18:46_

The following code placed in a class breaks syntax highlighting:

public void Routine
(
IInterface Interface0,
IInterface Interface1,
IInterface Interface2
)
{
string One = "";
string Two = "";
string Three = "";
}

interface IInterface
{
}

Beginning with the second instance of IInterface and after the method body, everything is white -- in more complex projects, somewhere it works again later in the file.
Screenshot:
![capture](https://cloud.githubusercontent.com/assets/7782966/26170357/77cae1ee-3b41-11e7-8d0d-75bfc1fc972c.PNG)

Removing the newline after public void Routine does not cause the issue:
![capture1](https://cloud.githubusercontent.com/assets/7782966/26170402/9dcf9394-3b41-11e7-8333-be1242bcdb97.PNG)

I am aware that this appears to be a "strange" coding style; it makes reading constructors with loads of dependency injections much cleaner though (issue happens with both methods and constructors).

_Copied from original issue: OmniSharp/omnisharp-vscode#1489_

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.