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

Generator Syntax Highlighting Broken #2756

Closed
TheColorRed opened this issue Feb 6, 2016 · 3 comments
Closed

Generator Syntax Highlighting Broken #2756

TheColorRed opened this issue Feb 6, 2016 · 3 comments
Assignees
Labels
help wanted Issues identified as good community contribution opportunities typescript Typescript support issues
Milestone

Comments

@TheColorRed
Copy link

Theme: Colorful Default Themes (Dark)

There is still a small issue when syntax highlighting generators, as you can see from this screenshot:

screenshot from 2016-02-05 21-15-55

When using a generator, everything becomes white. Also the class definition in the foreach is also white.

@TheColorRed TheColorRed changed the title Generator Syntax Highlighting broken Generator Syntax Highlighting Broken Feb 6, 2016
@aeschli
Copy link
Contributor

aeschli commented Feb 9, 2016

@TheColorRed Thanks for reporting this. Can you paste the code snippet as well, to speed up the instigations?

@aeschli aeschli added typescript Typescript support issues bug Issue identified by VS Code Team member as probable bug help wanted Issues identified as good community contribution opportunities labels Feb 9, 2016
@aeschli aeschli modified the milestones: Backlog, Feb 2016 Feb 9, 2016
@TheColorRed
Copy link
Author

Here is the code:

public GameObject[] GetItems(string name){
    List<GameObject> items = new List<GameObject>();
    foreach(InventoryItem i in inventoryItems){
        if(i.itemName == name){
            items.Add(i.gameObject);
        }
    }
    return items.ToArray();
}

public GameObject[] GetItems<T>(){
    List<GameObject> items = new List<GameObject>();
    foreach(var i in inventoryItems){
        if(i.GetType() == typeof(T)){
            items.Add(i.gameObject);
        }
    }
    return items.ToArray();
}

Note: the type hinting in the foreach also isn't highlighted.

@aeschli
Copy link
Contributor

aeschli commented Feb 9, 2016

This issue was moved to dotnet/vscode-csharp#33

@aeschli aeschli closed this as completed Feb 9, 2016
@aeschli aeschli removed the bug Issue identified by VS Code Team member as probable bug label Feb 26, 2016
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted Issues identified as good community contribution opportunities typescript Typescript support issues
Projects
None yet
Development

No branches or pull requests

2 participants