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

Syntax visualizer sometimes stops working after opening color picker for classified spans #1036

Open
DoctorKrolic opened this issue Nov 7, 2022 · 1 comment

Comments

@DoctorKrolic
Copy link

Version Used:
Latest main (dotnet/roslyn@1113a49)

Steps to Reproduce:

  1. Open VS with the empty project and a blank file
  2. Open roslyn Syntax visualizer
  3. Paste this code:
new SomeClass
{
    A = 1,
    B = new SomeOtherClass()
    {
        D = 7,
        E = "test",
        F = new int[]
    {
                      1,
                      2,
                      3
    }
    },
    C = new
    {
        G = new List<AndAnotherClass>
                    {
                      new AndAnotherClass
                      {
                        J = 8,
                        K = new Dictionary<int, string>
                        {
                          [1] = "test1",
                          [2] = "test2",
                          [3] = "test3"
                        },
                        L = new List<Whatever>$$()
                        {
                        }
                      }
                    },
        H = new
        {
        },
        I = new MixedClass()
        {
            ["test1"] = new MixedClass
            {
                ["innerTest"] = new MixedClass
                {
                    M = 5.01m
                }
            },
            M = 2.71m,
            ["test2"] = new MixedClass()
        }
    }
}
  1. Navigate mouse to $$
  2. Open color picker in the synax visualizer for this element
  3. Close color picker
  4. Observer that syntax visualizer stops responding to user actions and always stays empty

Demo:
yNqpWu3i6h

@Youssef1313
Copy link
Member

Youssef1313 commented Nov 7, 2022

The syntax visualizer is implemented in dotnet/roslyn-sdk.

https://github.com/dotnet/roslyn-sdk/tree/main/src/VisualStudio.Roslyn.SDK/SyntaxVisualizer

@CyrusNajmabadi CyrusNajmabadi transferred this issue from dotnet/roslyn Nov 7, 2022
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

3 participants