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

C# highlight function displays wrong colors when using string interpolation #450

Closed
lennylxx opened this issue Jun 17, 2016 · 1 comment
Closed

Comments

@lennylxx
Copy link

Environment data

dotnet --info output:

.NET Command Line Tools (1.0.0-preview1-002702)

Product Information:
 Version:     1.0.0-preview1-002702
 Commit Sha:  6cde21225e

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

VS Code version: 1.2.1
C# Extension version: 1.1.6

Steps to reproduce

  1. Open VSCode and create a C# source file: test.cs
  2. Paste below content and save
using System;

namespace ConsoleApplication1
{
    class Program
    {
        public static string World = string.Empty;
        public static string Test = DuplicateString($"{nameof(World)}");

        static void Main()
        {
            Console.WriteLine("Hello " + Test);
        }

        public static string DuplicateString(string s)
        {
            return s;
        }
    }
}

Expected behavior

C# highlight function works perfect.

Actual behavior

test

@lennylxx lennylxx changed the title C# highlight function displays wrong colors C# highlight function displays wrong colors when using string interpolation Jun 17, 2016
@DustinCampbell
Copy link
Member

This is a duplicate of #249. We'll use that issue to track this bug.

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