You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Runtime Environment:
OS Name: Mac OS X
OS Version: 10.12
OS Platform: Darwin
RID: osx.10.12-x64
VS Code version: 1.8.1
C# Extension version: 1.7.0-beta1
Steps to reproduce
namespace MyTest
{
public class ColorTest
{
private readonly string _color
public ColorTest(string white)
{
_color = white;
}
}
}
Expected behavior
This behavior happens when there is a syntax error (missing ;), so this makes it absolutely clear. Maybe it's a feature 😄 Visual Studio syntax highlighting continues to work for other lines, so I guess most users will expect that to be with VS Code also.
Actual behavior
Edit: It looks like that it only happens within class block and not in a method:
Note that VS continues to work because there's a proper parser with good error recovery doing the colorization. In VS Code, this is much trickier because it's all done with regular expressions as part of a TextMate grammar. 😦
You can create issues in omnisharp-vscode repo too. This repo is new. The C# TextMate grammar is here so it can easily be shared among VS Code, Atom, VS, Sublime, etc.
From @tverboon on January 27, 2017 7:12
Environment data
dotnet --info
output:.NET Command Line Tools (1.0.0-preview2-003121)
Product Information:
Version: 1.0.0-preview2-003121
Commit SHA-1 hash: 1e9d529bc5
Runtime Environment:
OS Name: Mac OS X
OS Version: 10.12
OS Platform: Darwin
RID: osx.10.12-x64
VS Code version: 1.8.1
C# Extension version: 1.7.0-beta1
Steps to reproduce
Expected behavior
This behavior happens when there is a syntax error (missing ;), so this makes it absolutely clear. Maybe it's a feature 😄 Visual Studio syntax highlighting continues to work for other lines, so I guess most users will expect that to be with VS Code also.
Actual behavior
Edit: It looks like that it only happens within class block and not in a method:
Copied from original issue: dotnet/vscode-csharp#1152
The text was updated successfully, but these errors were encountered: