Open michaelaird opened 7 years ago
Thanks for the suggestion. Have you seen any code samples for how to detect that state and/or request a project load?
@codecadwallader Perhaps some of this documentation on Lightweight solution loading from the VS2017 SDK would help https://docs.microsoft.com/en-us/visualstudio/extensibility/lightweight-solution-load-extension-impact
Thanks for the documentation. I did discuss LSL mode with someone from Microsoft a couple months back as they were starting to push it harder. One of the main sticking points is that LSL mode is really only compatible with the newer Roslyn APIs, not the EnvDTE APIs that CodeMaid has been based on since VS2005 days. We know that a Roslyn rewrite (see #251) is inevitable for long term support of CodeMaid going forwards, but its a very large undertaking.
Is there any possibility of an interim solution ? Ie. check VSHPROPID9.VSHPROPID_IsDeferred for the project codemaid thinks is external and prompt to load it?
On Wed, May 31, 2017 at 7:13 AM Steve Cadwallader notifications@github.com wrote:
Thanks for the documentation. I did discuss LSL mode with someone from Microsoft a couple months back as they were starting to push it harder. One of the main sticking points is that LSL mode is really only compatible with the newer Roslyn APIs, not the EnvDTE APIs that CodeMaid has been based on since VS2005 days. We know that a Roslyn rewrite (see #251 https://github.com/codecadwallader/codemaid/issues/251) is inevitable for long term support of CodeMaid going forwards, but its a very large undertaking.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/codecadwallader/codemaid/issues/389#issuecomment-305159949, or mute the thread https://github.com/notifications/unsubscribe-auth/AANX6alPRcxD6YLfwbGNsZSgzhi-Gv1zks5r_UtmgaJpZM4Losjg .
We are absolutely open source and would gladly welcome any contributions if you have time to experiment with it. http://www.codemaid.net/contribute/ has some helpful getting started information.
Environment
Description
When the solution is opened in "lightweight mode" not all the projects are loaded. If you navigate into a file in a project that is not fully loaded (ie. go to definition), when you tell CodeMaid to clean it, CodeMaid thinks the file is external.
Steps to recreate
Current behavior
CodeMaid shows the dialog that the file is external and some cleanup actions may not be available.
Expected behavior
Ideally, it would prompt to load the project or do so silently in the background before cleaning.