Skip to content
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

'var' inside foreach not highlighted #816

Closed
jtzeng opened this issue Oct 13, 2016 · 1 comment
Closed

'var' inside foreach not highlighted #816

jtzeng opened this issue Oct 13, 2016 · 1 comment

Comments

@jtzeng
Copy link

jtzeng commented Oct 13, 2016

Environment data

dotnet --info output:
.NET Command Line Tools (1.0.0-preview2-003133)

Product Information:
Version: 1.0.0-preview2-003133
Commit SHA-1 hash: 74df06500c

Runtime Environment:
OS Name: Windows
OS Version: 10.0.10586
OS Platform: Windows
RID: win10-x64

VS Code version: 1.6.0
C# Extension version: 1.4.1

Steps to reproduce

Write a foreach loop anywhere, e.g.
foreach (var s in myList) { ... }

Expected behavior

'var' should be colored, like it is when you write something like
foreach (string s in myList) { ... }

Actual behavior

It isn't, and appears as white.

@DustinCampbell DustinCampbell added this to the 1.7 milestone Jan 7, 2017
@DustinCampbell DustinCampbell self-assigned this Jan 7, 2017
DustinCampbell added a commit to DustinCampbell/vscode-csharp that referenced this issue Jan 7, 2017
@DustinCampbell
Copy link
Member

This should look much better in the next release:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants