We must know how Microsoft manages XML-generated code (those * .g.cs files). If you receive the XAML code behind, the * .g.cs file is not part of the project, even if intellisense will work !!
Context:
Custom VS In the package, we should have some logic to open the CS file (with a part of it in VS IDE, to allow the user to edit it.
We will put the document in the ongoing document table Hooking and using IVSRunningDocumentTable, getting events like saved, shutting down and all like it. Good work.
The problem is now, when the document is opened, Intelligence does not workBecause, the simple document is that the opened document is not part of the project (unfortunately, we can not do this, we can not create the code behind it).
The memory cache of intelligence identifiers is operated by the type and type of projects that were cached on the basis of the project you provided and the references given in the project. If you are If the code file being edited is not part of a project, then Visual Studio will have to load every possible assembly and create intensive data for each type of NAT framework, because it will not have any way to know your code file. Necessary.
I think Visual Studio may be Maybe load Intelligence based on the content of the file, but that's not the way it works currently.
Comments
Post a Comment