Skip to content

Commit

Permalink
Do not increment level
Browse files Browse the repository at this point in the history
  • Loading branch information
monoblaine committed Sep 24, 2017
1 parent 6452f31 commit 16a64a5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions CollapseLevel/CollapseLevel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,6 @@ public static void Initialize(Package package)
/// </summary>
private void Collapse(int level)
{
level++; // Because we want to collapse above this level

var componentModel = this.ServiceProvider.GetService(typeof(SComponentModel)) as IComponentModel;

foreach (ITextView tv in TextViewRegistry.GetExistingViews()) // Collapse is performed on all open documents in current state of extension.
Expand Down

0 comments on commit 16a64a5

Please sign in to comment.