Skip to content

Doesn't work for an external C# file in VS 2015 #2

@Sergey-Vlasov

Description

@Sergey-Vlasov

I used this code successfully to edit C# files internal to my extension (outside opened user's solution) in VS 2010-2013, but it no longer works in VS 2015.

To reproduce this problem, in the SetDisplayedFile method you can set path to an external file like
filePath= @"C:\Users\sv\Desktop\ToolWindowHostedEditor\MyToolWindow.cs";
Then open any VS solution and invoke the hosted editor.

In VS 2015 there is no syntax highlighting for such file and I can't type any text in the hosted editor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions