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

Highlighting inside constructor base call is broken #782

Closed
Tyriar opened this issue Sep 25, 2016 · 2 comments
Closed

Highlighting inside constructor base call is broken #782

Tyriar opened this issue Sep 25, 2016 · 2 comments

Comments

@Tyriar
Copy link
Contributor

Tyriar commented Sep 25, 2016

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:     ubuntu
 OS Version:  16.04
 OS Platform: Linux
 RID:         ubuntu.16.04-x64

VS Code version: 1.6.0-insiders
Theme: https://marketplace.visualstudio.com/items?itemName=Tyriar.theme-glacier
C# Extension version: 1.4.1

Steps to reproduce

For code:

public class A
{
    public A() : base(
            1,
            'abc'
            new B<char>(),
            new B<string>()) {
        var a = 1;
        var b = "abc";
        var c = new B<char>();
        var c = new B<string>();
    }
}

Expected behavior

The highlighting inside base() should be colored the same as outside it.

Actual behavior

image

@DustinCampbell
Copy link
Member

Looks like we need another scope for constructor initializers.

@DustinCampbell DustinCampbell added this to the 1.7 milestone Jan 7, 2017
@DustinCampbell DustinCampbell self-assigned this Jan 7, 2017
@DustinCampbell
Copy link
Member

This should be fixed 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