ryanmolden / toolwindowhostededitorexample Goto Github PK
View Code? Open in Web Editor NEWExample of hosting a standard VS editor in a VS toolwindow
Example of hosting a standard VS editor in a VS toolwindow
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.
I have been trying to use your sample here and it mostly works. I can get it to load up the editor and it even pulls in the syntax highlighting and all of that. But if I change the code and hit Ctrl+S it does not seem to actually write to disk.
I'm looking in the PreProcessMessage method of MyToolWindow and the //HACK: makes me very suspicious... but I really don't know what could be going wrong. Can you help at all?
@ryanmolden, could you upgrade this example to VS2017? Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.