├── .gitattributes ├── .gitignore ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── ToggleFeatures.sln ├── appveyor.yml ├── art ├── file-nesting-closed.png ├── file-nesting.png ├── prompt.png ├── solution-explorer-after.png ├── solution-explorer.png └── view-menu.png └── src ├── Commands └── GraphProviderCommand.cs ├── Properties └── AssemblyInfo.cs ├── Resources ├── Icon.png ├── Images.png └── Preview.png ├── ToggleFeatures.csproj ├── VSCommandTable.cs ├── VSCommandTable.vsct ├── VSPackage.cs ├── source.extension.cs └── source.extension.vsixmanifest /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | 7 | # Standard to msysgit 8 | *.doc diff=astextplain 9 | *.DOC diff=astextplain 10 | *.docx diff=astextplain 11 | *.DOCX diff=astextplain 12 | *.dot diff=astextplain 13 | *.DOT diff=astextplain 14 | *.pdf diff=astextplain 15 | *.PDF diff=astextplain 16 | *.rtf diff=astextplain 17 | *.RTF diff=astextplain 18 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | packages 2 | node_modules.7z 3 | 4 | # User files 5 | *.suo 6 | *.user 7 | *.sln.docstates 8 | .vs/ 9 | 10 | # Build results 11 | 12 | [Dd]ebug/ 13 | [Rr]elease/ 14 | x64/ 15 | [Bb]in/ 16 | [Oo]bj/ 17 | 18 | # MSTest test Results 19 | [Tt]est[Rr]esult*/ 20 | [Bb]uild[Ll]og.* 21 | 22 | # NCrunch 23 | *.ncrunchsolution 24 | *.ncrunchproject 25 | _NCrunch_WebCompiler -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing 2 | 3 | Looking to contribute something? **Here's how you can help.** 4 | 5 | Please take a moment to review this document in order to make the contribution 6 | process easy and effective for everyone involved. 7 | 8 | Following these guidelines helps to communicate that you respect the time of 9 | the developers managing and developing this open source project. In return, 10 | they should reciprocate that respect in addressing your issue or assessing 11 | patches and features. 12 | 13 | 14 | ## Using the issue tracker 15 | 16 | The issue tracker is the preferred channel for [bug reports](#bug-reports), 17 | [features requests](#feature-requests) and 18 | [submitting pull requests](#pull-requests), but please respect the 19 | following restrictions: 20 | 21 | * Please **do not** use the issue tracker for personal support requests. Stack 22 | Overflow is a better place to get help. 23 | 24 | * Please **do not** derail or troll issues. Keep the discussion on topic and 25 | respect the opinions of others. 26 | 27 | * Please **do not** open issues or pull requests which *belongs to* third party 28 | components. 29 | 30 | 31 | ## Bug reports 32 | 33 | A bug is a _demonstrable problem_ that is caused by the code in the repository. 34 | Good bug reports are extremely helpful, so thanks! 35 | 36 | Guidelines for bug reports: 37 | 38 | 1. **Use the GitHub issue search** — check if the issue has already been 39 | reported. 40 | 41 | 2. **Check if the issue has been fixed** — try to reproduce it using the 42 | latest `master` or development branch in the repository. 43 | 44 | 3. **Isolate the problem** — ideally create an 45 | [SSCCE](http://www.sscce.org/) and a live example. 46 | Uploading the project on cloud storage (OneDrive, DropBox, et el.) 47 | or creating a sample GitHub repository is also helpful. 48 | 49 | 50 | A good bug report shouldn't leave others needing to chase you up for more 51 | information. Please try to be as detailed as possible in your report. What is 52 | your environment? What steps will reproduce the issue? What browser(s) and OS 53 | experience the problem? Do other browsers show the bug differently? What 54 | would you expect to be the outcome? All these details will help people to fix 55 | any potential bugs. 56 | 57 | Example: 58 | 59 | > Short and descriptive example bug report title 60 | > 61 | > A summary of the issue and the Visual Studio, browser, OS environments 62 | > in which it occurs. If suitable, include the steps required to reproduce the bug. 63 | > 64 | > 1. This is the first step 65 | > 2. This is the second step 66 | > 3. Further steps, etc. 67 | > 68 | > `` - a link to the project/file uploaded on cloud storage or other publicly accessible medium. 69 | > 70 | > Any other information you want to share that is relevant to the issue being 71 | > reported. This might include the lines of code that you have identified as 72 | > causing the bug, and potential solutions (and your opinions on their 73 | > merits). 74 | 75 | 76 | ## Feature requests 77 | 78 | Feature requests are welcome. But take a moment to find out whether your idea 79 | fits with the scope and aims of the project. It's up to *you* to make a strong 80 | case to convince the project's developers of the merits of this feature. Please 81 | provide as much detail and context as possible. 82 | 83 | 84 | ## Pull requests 85 | 86 | Good pull requests, patches, improvements and new features are a fantastic 87 | help. They should remain focused in scope and avoid containing unrelated 88 | commits. 89 | 90 | **Please ask first** before embarking on any significant pull request (e.g. 91 | implementing features, refactoring code, porting to a different language), 92 | otherwise you risk spending a lot of time working on something that the 93 | project's developers might not want to merge into the project. 94 | 95 | Please adhere to the [coding guidelines](#code-guidelines) used throughout the 96 | project (indentation, accurate comments, etc.) and any other requirements 97 | (such as test coverage). 98 | 99 | Adhering to the following process is the best way to get your work 100 | included in the project: 101 | 102 | 1. [Fork](http://help.github.com/fork-a-repo/) the project, clone your fork, 103 | and configure the remotes: 104 | 105 | ```bash 106 | # Clone your fork of the repo into the current directory 107 | git clone https://github.com//.git 108 | # Navigate to the newly cloned directory 109 | cd 110 | # Assign the original repo to a remote called "upstream" 111 | git remote add upstream https://github.com/madskristensen/.git 112 | ``` 113 | 114 | 2. If you cloned a while ago, get the latest changes from upstream: 115 | 116 | ```bash 117 | git checkout master 118 | git pull upstream master 119 | ``` 120 | 121 | 3. Create a new topic branch (off the main project development branch) to 122 | contain your feature, change, or fix: 123 | 124 | ```bash 125 | git checkout -b 126 | ``` 127 | 128 | 4. Commit your changes in logical chunks. Please adhere to these [git commit 129 | message guidelines](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html) 130 | or your code is unlikely be merged into the main project. Use Git's 131 | [interactive rebase](https://help.github.com/articles/interactive-rebase) 132 | feature to tidy up your commits before making them public. Also, prepend name of the feature 133 | to the commit message. For instance: "SCSS: Fixes compiler results for IFileListener.\nFixes `#123`" 134 | 135 | 5. Locally merge (or rebase) the upstream development branch into your topic branch: 136 | 137 | ```bash 138 | git pull [--rebase] upstream master 139 | ``` 140 | 141 | 6. Push your topic branch up to your fork: 142 | 143 | ```bash 144 | git push origin 145 | ``` 146 | 147 | 7. [Open a Pull Request](https://help.github.com/articles/using-pull-requests/) 148 | with a clear title and description against the `master` branch. 149 | 150 | 151 | ## Code guidelines 152 | 153 | - Always use proper indentation. 154 | - In Visual Studio under `Tools > Options > Text Editor > C# > Advanced`, make sure 155 | `Place 'System' directives first when sorting usings` option is enabled (checked). 156 | - Before committing, organize usings for each updated C# source file. Either you can 157 | right-click editor and select `Organize Usings > Remove and sort` OR use extension 158 | like [BatchFormat](http://visualstudiogallery.msdn.microsoft.com/a7f75c34-82b4-4357-9c66-c18e32b9393e). 159 | - Before committing, run Code Analysis in `Debug` configuration and follow the guidelines 160 | to fix CA issues. Code Analysis commits can be made separately. 161 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2016 Mads Kristensen 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Disable Solution Explorer's Dynamic Nodes 2 | 3 | [![Build status](https://ci.appveyor.com/api/projects/status/pcst2rgduofvuru1?svg=true)](https://ci.appveyor.com/project/madskristensen/togglefeatures) 4 | 5 | Download the extension at the 6 | [VS Gallery](https://visualstudiogallery.msdn.microsoft.com/62461a72-4255-4eac-a630-52758e9c3723) 7 | or get the 8 | [nightly build](http://vsixgallery.com/extension/4ce74140-3f68-4438-92a4-a54afea98179/). 9 | 10 | --------------------------------------------------- 11 | 12 | A single-purpose extension that makes it easy to 13 | disable/enable Solution Explorer's dynamic nodes such as 14 | inline Class View nodes from C# and VB files. 15 | 16 | ## Warning - here's how it works 17 | This extension disables all dynamic nodes implemented using 18 | the `IGraphProvider` interface, so there might be other 19 | nodes besides the Class View nodes that will be disabled. 20 | 21 | However, this extensions allows you to turn the feature 22 | back on without leaving a trace, so it is safe to try out. 23 | 24 | Visual Studio doesn't allow to turn off just a single 25 | implementation of the `IGraphProvider`, such as inline 26 | Class View, so the entire feature has to be disabled. 27 | 28 | That's unfortunate. 29 | 30 | ## Inline class view 31 | Solution Explorer injects extra virtual nodes under certain 32 | code files to give a sneak peek inside them. 33 | 34 | ![Solution Explorer](art/solution-explorer.png) 35 | 36 | Though it provides more information about a file, it also 37 | adds complexity to the Solution Explorer that may confuse 38 | more than help. 39 | 40 | ## File nesting 41 | One of the issues with in inline class view is that it 42 | makes it more difficult to find nested files. 43 | 44 | When files are nested under C# files, it is impossible 45 | to tell since it looks like any other C# file with the 46 | expander icon next to it. 47 | 48 | ![File nesting closed](art/file-nesting-closed.png) 49 | 50 | It's only when the file is expanded that the nested file 51 | becomes visible. 52 | 53 | ![File nesting](art/file-nesting.png) 54 | 55 | In this example the file _VSPackage.resx_ is nested under 56 | the C# file _VSPackage.cs_ but it's only visible when 57 | the file is expanded. 58 | 59 | ## Hide inline class view 60 | Under the top-level **View** menu, a new button is added 61 | to toggle the visibility of the inline class view. 62 | 63 | ![View menu](art/view-menu.png) 64 | 65 | Clicking the button will prompt the user with a question 66 | to proceed and restart Visual Studio. 67 | 68 | ![Prompt](art/prompt.png) 69 | 70 | Clicking **Yes** will toggle the inline class view feature 71 | on/off and restart VS. 72 | 73 | The result is a much cleaner Solution Explorer. 74 | 75 | ![Solution Explorer after](art/solution-explorer-after.png) 76 | 77 | ## License 78 | 79 | [Apache 2.0](LICENSE) -------------------------------------------------------------------------------- /ToggleFeatures.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 14 4 | VisualStudioVersion = 14.0.24720.0 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ToggleFeatures", "src\ToggleFeatures.csproj", "{4A572F87-88BD-40AB-9676-D66E05989D83}" 7 | EndProject 8 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{BB2CC9F9-C01E-47EA-8051-E2C8A3276CC9}" 9 | ProjectSection(SolutionItems) = preProject 10 | appveyor.yml = appveyor.yml 11 | README.md = README.md 12 | EndProjectSection 13 | EndProject 14 | Global 15 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 16 | Debug|Any CPU = Debug|Any CPU 17 | Release|Any CPU = Release|Any CPU 18 | EndGlobalSection 19 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 20 | {4A572F87-88BD-40AB-9676-D66E05989D83}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 21 | {4A572F87-88BD-40AB-9676-D66E05989D83}.Debug|Any CPU.Build.0 = Debug|Any CPU 22 | {4A572F87-88BD-40AB-9676-D66E05989D83}.Release|Any CPU.ActiveCfg = Release|Any CPU 23 | {4A572F87-88BD-40AB-9676-D66E05989D83}.Release|Any CPU.Build.0 = Release|Any CPU 24 | EndGlobalSection 25 | GlobalSection(SolutionProperties) = preSolution 26 | HideSolutionNode = FALSE 27 | EndGlobalSection 28 | EndGlobal 29 | -------------------------------------------------------------------------------- /appveyor.yml: -------------------------------------------------------------------------------- 1 | image: Visual Studio 2019 2 | 3 | install: 4 | - ps: (new-object Net.WebClient).DownloadString("https://raw.github.com/madskristensen/ExtensionScripts/master/AppVeyor/vsix.ps1") | iex 5 | 6 | before_build: 7 | - ps: Vsix-IncrementVsixVersion | Vsix-UpdateBuildVersion 8 | - ps: Vsix-TokenReplacement src\source.extension.cs 'Version = "([0-9\\.]+)"' 'Version = "{version}"' 9 | 10 | build_script: 11 | - nuget restore -Verbosity quiet 12 | - msbuild /p:configuration=Release /p:DeployExtension=false /p:ZipPackageCompressionLevel=normal /v:m 13 | 14 | after_test: 15 | - ps: Vsix-PushArtifacts | Vsix-PublishToGallery -------------------------------------------------------------------------------- /art/file-nesting-closed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madskristensen/ToggleFeatures/82795cb55acc09b1e1e0501213e5e44fe76cb33c/art/file-nesting-closed.png -------------------------------------------------------------------------------- /art/file-nesting.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madskristensen/ToggleFeatures/82795cb55acc09b1e1e0501213e5e44fe76cb33c/art/file-nesting.png -------------------------------------------------------------------------------- /art/prompt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madskristensen/ToggleFeatures/82795cb55acc09b1e1e0501213e5e44fe76cb33c/art/prompt.png -------------------------------------------------------------------------------- /art/solution-explorer-after.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madskristensen/ToggleFeatures/82795cb55acc09b1e1e0501213e5e44fe76cb33c/art/solution-explorer-after.png -------------------------------------------------------------------------------- /art/solution-explorer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madskristensen/ToggleFeatures/82795cb55acc09b1e1e0501213e5e44fe76cb33c/art/solution-explorer.png -------------------------------------------------------------------------------- /art/view-menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madskristensen/ToggleFeatures/82795cb55acc09b1e1e0501213e5e44fe76cb33c/art/view-menu.png -------------------------------------------------------------------------------- /src/Commands/GraphProviderCommand.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.ComponentModel.Design; 3 | using System.Windows.Forms; 4 | using Microsoft; 5 | using Microsoft.VisualStudio.Shell; 6 | using Microsoft.VisualStudio.Shell.Interop; 7 | using Task = System.Threading.Tasks.Task; 8 | 9 | namespace MadsKristensen.ToggleFeatures 10 | { 11 | internal sealed class GraphProviderCommand 12 | { 13 | private readonly Package _package; 14 | private const string _dword = "UseSolutionNavigatorGraphProvider"; 15 | private bool _isEnabled; 16 | 17 | private GraphProviderCommand(Package package, OleMenuCommandService service) 18 | { 19 | ServiceProvider = _package = package; 20 | 21 | var cmdId = new CommandID(PackageGuids.guidToggleFeaturesCmdSet, PackageIds.ToggleGraphProvider); 22 | var button = new OleMenuCommand(ToggleFeature, cmdId); 23 | button.BeforeQueryStatus += BeforeQueryStatus; 24 | service.AddCommand(button); 25 | } 26 | 27 | public static GraphProviderCommand Instance { get; private set; } 28 | 29 | private IServiceProvider ServiceProvider { get; } 30 | 31 | public static async Task InitializeAsync(AsyncPackage package) 32 | { 33 | var service = await package.GetServiceAsync(typeof(IMenuCommandService)) as OleMenuCommandService; 34 | Instance = new GraphProviderCommand(package, service); 35 | } 36 | 37 | private void BeforeQueryStatus(object sender, EventArgs e) 38 | { 39 | var button = (OleMenuCommand)sender; 40 | 41 | var rawValue = _package.UserRegistryRoot.GetValue(_dword, 1); 42 | int.TryParse(rawValue.ToString(), out var value); 43 | 44 | _isEnabled = value != 0; 45 | button.Text = (_isEnabled ? "Disable" : "Enable") + " Solution Explorer's Dynamic Nodes"; 46 | } 47 | 48 | private void ToggleFeature(object sender, EventArgs e) 49 | { 50 | if (!_isEnabled) 51 | { 52 | _package.UserRegistryRoot.DeleteValue(_dword, false); 53 | } 54 | else 55 | { 56 | _package.UserRegistryRoot.SetValue(_dword, 0); 57 | } 58 | 59 | if (UserWantsToRestart(!_isEnabled)) 60 | { 61 | RestartVS(); 62 | } 63 | } 64 | 65 | private void RestartVS() 66 | { 67 | var shell = (IVsShell4)ServiceProvider.GetService(typeof(SVsShell)); 68 | Assumes.Present(shell); 69 | 70 | shell.Restart((uint)__VSRESTARTTYPE.RESTART_Normal); 71 | } 72 | 73 | private static bool UserWantsToRestart(bool willEnable) 74 | { 75 | var mode = willEnable ? "enabled" : "disabled"; 76 | var text = $"Dynamic nodes have now been {mode}, but will not take effect before Visual Studio has been restarted.\r\rDo you wish to restart now?"; 77 | return MessageBox.Show(text, Vsix.Name, MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes; 78 | } 79 | } 80 | } -------------------------------------------------------------------------------- /src/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Reflection; 3 | using System.Resources; 4 | using System.Runtime.InteropServices; 5 | using MadsKristensen.ToggleFeatures; 6 | 7 | [assembly: AssemblyTitle(Vsix.Name)] 8 | [assembly: AssemblyDescription(Vsix.Description)] 9 | [assembly: AssemblyConfiguration("")] 10 | [assembly: AssemblyCompany(Vsix.Author)] 11 | [assembly: AssemblyProduct(Vsix.Name)] 12 | [assembly: AssemblyCopyright(Vsix.Author)] 13 | [assembly: AssemblyTrademark("")] 14 | [assembly: AssemblyCulture("")] 15 | [assembly: ComVisible(false)] 16 | [assembly: CLSCompliant(false)] 17 | [assembly: NeutralResourcesLanguage("en-US")] 18 | 19 | [assembly: AssemblyVersion(Vsix.Version)] 20 | [assembly: AssemblyFileVersion(Vsix.Version)] 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /src/Resources/Icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madskristensen/ToggleFeatures/82795cb55acc09b1e1e0501213e5e44fe76cb33c/src/Resources/Icon.png -------------------------------------------------------------------------------- /src/Resources/Images.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madskristensen/ToggleFeatures/82795cb55acc09b1e1e0501213e5e44fe76cb33c/src/Resources/Images.png -------------------------------------------------------------------------------- /src/Resources/Preview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madskristensen/ToggleFeatures/82795cb55acc09b1e1e0501213e5e44fe76cb33c/src/Resources/Preview.png -------------------------------------------------------------------------------- /src/ToggleFeatures.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | $(VisualStudioVersion) 5 | $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) 6 | Program 7 | $(DevEnvDir)\devenv.exe 8 | /rootsuffix Exp 9 | v3 10 | true 11 | 12 | 13 | 14 | 15 | 16 | 17 | Debug 18 | AnyCPU 19 | 2.0 20 | {4A572F87-88BD-40AB-9676-D66E05989D83} 21 | {82b43b9b-a64c-4715-b499-d71e9ca2bd60};{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 22 | Library 23 | Properties 24 | MadsKristensen.ToggleFeatures 25 | ToggleFeatures 26 | v4.6 27 | 28 | 29 | true 30 | full 31 | false 32 | bin\Debug\ 33 | DEBUG;TRACE 34 | prompt 35 | 4 36 | 37 | 38 | pdbonly 39 | true 40 | bin\Release\ 41 | TRACE 42 | prompt 43 | 4 44 | true 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | True 57 | True 58 | source.extension.vsixmanifest 59 | 60 | 61 | True 62 | True 63 | VSCommandTable.vsct 64 | 65 | 66 | 67 | 68 | 69 | 70 | Resources\LICENSE 71 | true 72 | 73 | 74 | Designer 75 | VsixManifestGenerator 76 | source.extension.cs 77 | 78 | 79 | 80 | 81 | Menus.ctmenu 82 | VsctGenerator 83 | VSCommandTable.cs 84 | 85 | 86 | 87 | 88 | true 89 | Always 90 | 91 | 92 | 93 | true 94 | Always 95 | 96 | 97 | 98 | 99 | 100 | 17.0.2120-preview2 101 | runtime; build; native; contentfiles; analyzers; buildtransitive 102 | all 103 | 104 | 105 | 106 | true 107 | 108 | 109 | 110 | 117 | -------------------------------------------------------------------------------- /src/VSCommandTable.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This file was generated by VSIX Synchronizer 4 | // 5 | // ------------------------------------------------------------------------------ 6 | namespace MadsKristensen.ToggleFeatures 7 | { 8 | using System; 9 | 10 | /// 11 | /// Helper class that exposes all GUIDs used across VS Package. 12 | /// 13 | internal sealed partial class PackageGuids 14 | { 15 | public const string guidToggleFeaturesPkgString = "4ce74140-3f68-4438-92a4-a54afea98179"; 16 | public static Guid guidToggleFeaturesPkg = new Guid(guidToggleFeaturesPkgString); 17 | 18 | public const string guidToggleFeaturesCmdSetString = "53667d07-cf71-4f9b-b867-ec0f007418ee"; 19 | public static Guid guidToggleFeaturesCmdSet = new Guid(guidToggleFeaturesCmdSetString); 20 | 21 | public const string guidImagesString = "53667d07-cf71-4f9b-b867-ec0f007418ef"; 22 | public static Guid guidImages = new Guid(guidImagesString); 23 | } 24 | /// 25 | /// Helper class that encapsulates all CommandIDs uses across VS Package. 26 | /// 27 | internal sealed partial class PackageIds 28 | { 29 | public const int ToggleGraphProvider = 0x0100; 30 | public const int GraphProvider = 0x0001; 31 | } 32 | } -------------------------------------------------------------------------------- /src/VSCommandTable.vsct: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /src/VSPackage.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Runtime.InteropServices; 3 | using System.Threading; 4 | using Microsoft.VisualStudio; 5 | using Microsoft.VisualStudio.Shell; 6 | using Task = System.Threading.Tasks.Task; 7 | 8 | namespace MadsKristensen.ToggleFeatures 9 | { 10 | [PackageRegistration(UseManagedResourcesOnly = true, AllowsBackgroundLoading = true)] 11 | [InstalledProductRegistration(Vsix.Name, Vsix.Description, Vsix.Version)] 12 | [ProvideMenuResource("Menus.ctmenu", 1)] 13 | [ProvideAutoLoad(VSConstants.UICONTEXT.ShellInitialized_string, PackageAutoLoadFlags.BackgroundLoad)] 14 | [Guid(PackageGuids.guidToggleFeaturesPkgString)] 15 | public sealed class VSPackage : AsyncPackage 16 | { 17 | protected override async Task InitializeAsync(CancellationToken cancellationToken, IProgress progress) 18 | { 19 | await JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken); 20 | await GraphProviderCommand.InitializeAsync(this); 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/source.extension.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This file was generated by VSIX Synchronizer 4 | // 5 | // ------------------------------------------------------------------------------ 6 | namespace MadsKristensen.ToggleFeatures 7 | { 8 | internal sealed partial class Vsix 9 | { 10 | public const string Id = "4ce74140-3f68-4438-92a4-a54afea98179"; 11 | public const string Name = "Disable Solution Explorer's Dynamic Nodes"; 12 | public const string Description = @"A single-purpose extension that makes it easy to disable/enable Solution Explorer's dynamic nodes such inline Class View nodes from C# and VB files. "; 13 | public const string Language = "en-US"; 14 | public const string Version = "1.3"; 15 | public const string Author = "Mads Kristensen"; 16 | public const string Tags = "Solution Explorer, enable, disable, IGraphProvider"; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/source.extension.vsixmanifest: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Disable Solution Explorer's Dynamic Nodes 6 | A single-purpose extension that makes it easy to disable/enable Solution Explorer's dynamic nodes such inline Class View nodes from C# and VB files. 7 | https://github.com/madskristensen/togglefeatures 8 | Resources\LICENSE 9 | Resources\Icon.png 10 | Resources\Preview.png 11 | Solution Explorer, enable, disable, IGraphProvider 12 | 13 | 14 | 15 | 16 | amd64 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | --------------------------------------------------------------------------------