Skip to content

Commit 1d7113e

Browse files
Merge remote-tracking branch 'refs/remotes/origin/master' into stable
2 parents 933c2be + 132b749 commit 1d7113e

File tree

55 files changed

+565
-339
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+565
-339
lines changed

CHANGELOG.md

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,32 @@
11
# Changelog
22

3-
## vNext (TBD)
3+
## vNext (10.2)
44

5-
These changes have not been released to the official Visual Studio extension gallery, but (if checked) are available in preview within the [CI build](http://vsixgallery.com/extension/4c82e17d-927e-42d2-8460-b473ac7df316/).
5+
These changes have not been released to the Visual Studio marketplace, but (if checked) are available in preview within the [CI build](http://vsixgallery.com/extension/4c82e17d-927e-42d2-8460-b473ac7df316/).
66

7-
- [ ] TBD
7+
- [x] Features
8+
9+
- [x] Fixes
810

911
## Previous Releases
1012

11-
These are the changes to each version that has been released to the official Visual Studio extension gallery.
13+
These are the changes to each version that has been released to the Visual Studio marketplace.
14+
15+
## 10.2
16+
17+
**2017-01-01**
18+
19+
- [x] Features
20+
- [x] [#284](https://github.com/codecadwallader/codemaid/issues/284) - Performance improvements to compiling regular expressions - thanks [flagbug](https://github.com/flagbug)!
21+
- [x] [#298](https://github.com/codecadwallader/codemaid/issues/298) - First class support for VB regions (viewing, inserting and removing)
22+
- [x] [#337](https://github.com/codecadwallader/codemaid/issues/337) - Reorganizing: Add option to put explicit interface implementations after other members - thanks [samcragg](https://github.com/samcragg)!
23+
- [x] [#371](https://github.com/codecadwallader/codemaid/issues/371) - Support for VS2017 RC
24+
25+
- [x] Fixes
26+
- [x] [#290](https://github.com/codecadwallader/codemaid/issues/290) - Finding: When track active item is enabled an error can be displayed on invocation
27+
- [x] [#315](https://github.com/codecadwallader/codemaid/issues/315) - Reorganizing: Explicit interface implementations may take multiple passes to get in stable order - thanks [samcragg](https://github.com/samcragg)!
28+
- [x] [#326](https://github.com/codecadwallader/codemaid/issues/326) - Digging: VB comments were not visible
29+
- [x] [#342](https://github.com/codecadwallader/codemaid/issues/342) - Digging: VB regions were not visible - thanks [aeab13](https://github.com/aeab13)!
1230

1331
## 10.1
1432

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
using System.Collections.Generic;
2+
using System.Linq;
3+
using System.Text;
4+
using System.Threading.Tasks;
5+
using System;
6+
7+
namespace SteveCadwallader.CodeMaid.IntegrationTests.Cleaning.VisualStudio.Data
8+
{
9+
public class Class
10+
{
11+
public String String { get; set; }
12+
public StringBuilder StringBuilder { get; set; }
13+
}
14+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
using System;
2+
using System.Text;
3+
4+
namespace SteveCadwallader.CodeMaid.IntegrationTests.Cleaning.VisualStudio.Data
5+
{
6+
public class Class
7+
{
8+
public String String { get; set; }
9+
public StringBuilder StringBuilder { get; set; }
10+
}
11+
}

CodeMaid.IntegrationTests/Cleaning/VisualStudio/Data/RemoveUnusedUsingStatements.cs

Lines changed: 0 additions & 9 deletions
This file was deleted.

CodeMaid.IntegrationTests/Cleaning/VisualStudio/Data/RemoveUnusedUsingStatements_Cleaned.cs

Lines changed: 0 additions & 3 deletions
This file was deleted.

CodeMaid.IntegrationTests/Cleaning/VisualStudio/Data/SortUsingStatements.cs

Lines changed: 0 additions & 9 deletions
This file was deleted.

CodeMaid.IntegrationTests/Cleaning/VisualStudio/Data/SortUsingStatements_Cleaned.cs

Lines changed: 0 additions & 9 deletions
This file was deleted.

CodeMaid.IntegrationTests/Cleaning/VisualStudio/ReinsertAfterRemoveUnusedUsingStatementsTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public void TestCleanup()
4545
[HostType("VS IDE")]
4646
public void CleaningVisualStudioReinsertAfterRemoveUnusedUsingStatements_RunsAsExpected()
4747
{
48-
Settings.Default.Cleaning_RunVisualStudioRemoveUnusedUsingStatements = true;
48+
Settings.Default.Cleaning_RunVisualStudioRemoveAndSortUsingStatements = true;
4949
Settings.Default.Cleaning_UsingStatementsToReinsertWhenRemovedExpression = "using System;||using System.Linq;";
5050

5151
TestOperations.ExecuteCommandAndVerifyResults(RunRemoveUnusedUsingStatements, _projectItem, @"Data\ReinsertAfterRemoveUnusedUsingStatements_Cleaned.cs");
@@ -55,7 +55,7 @@ public void CleaningVisualStudioReinsertAfterRemoveUnusedUsingStatements_RunsAsE
5555
[HostType("VS IDE")]
5656
public void CleaningVisualStudioReinsertAfterRemoveUnusedUsingStatements_DoesNothingWhenSettingIsDisabled()
5757
{
58-
Settings.Default.Cleaning_RunVisualStudioRemoveUnusedUsingStatements = false;
58+
Settings.Default.Cleaning_RunVisualStudioRemoveAndSortUsingStatements = false;
5959
Settings.Default.Cleaning_UsingStatementsToReinsertWhenRemovedExpression = "using System;||using System.Linq;";
6060

6161
TestOperations.ExecuteCommandAndVerifyNoChanges(RunRemoveUnusedUsingStatements, _projectItem);
@@ -67,7 +67,7 @@ public void CleaningVisualStudioReinsertAfterRemoveUnusedUsingStatements_DoesNot
6767

6868
private static void RunRemoveUnusedUsingStatements(Document document)
6969
{
70-
_usingStatementCleanupLogic.RemoveUnusedUsingStatements(document.GetTextDocument());
70+
_usingStatementCleanupLogic.RemoveAndSortUsingStatements(document.GetTextDocument());
7171
}
7272

7373
#endregion Helpers

CodeMaid.IntegrationTests/Cleaning/VisualStudio/RemoveUnusedUsingStatementsTests.cs renamed to CodeMaid.IntegrationTests/Cleaning/VisualStudio/RemoveAndSortUsingStatementsTests.cs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
namespace SteveCadwallader.CodeMaid.IntegrationTests.Cleaning.VisualStudio
99
{
1010
[TestClass]
11-
[DeploymentItem(@"Cleaning\VisualStudio\Data\RemoveUnusedUsingStatements.cs", "Data")]
12-
[DeploymentItem(@"Cleaning\VisualStudio\Data\RemoveUnusedUsingStatements_Cleaned.cs", "Data")]
13-
public class RemoveUnusedUsingStatementsTests
11+
[DeploymentItem(@"Cleaning\VisualStudio\Data\RemoveAndSortUsingStatements.cs", "Data")]
12+
[DeploymentItem(@"Cleaning\VisualStudio\Data\RemoveAndSortUsingStatements_Cleaned.cs", "Data")]
13+
public class RemoveAndSortUsingStatementsTests
1414
{
1515
#region Setup
1616

@@ -28,7 +28,7 @@ public static void ClassInitialize(TestContext testContext)
2828
public void TestInitialize()
2929
{
3030
TestEnvironment.CommonTestInitialize();
31-
_projectItem = TestEnvironment.LoadFileIntoProject(@"Data\RemoveUnusedUsingStatements.cs");
31+
_projectItem = TestEnvironment.LoadFileIntoProject(@"Data\RemoveAndSortUsingStatements.cs");
3232
}
3333

3434
[TestCleanup]
@@ -43,38 +43,38 @@ public void TestCleanup()
4343

4444
[TestMethod]
4545
[HostType("VS IDE")]
46-
public void CleaningVisualStudioRemoveUnusedUsingStatements_RunsAsExpected()
46+
public void CleaningVisualStudioRemoveAndSortUsingStatements_RunsAsExpected()
4747
{
48-
Settings.Default.Cleaning_RunVisualStudioRemoveUnusedUsingStatements = true;
48+
Settings.Default.Cleaning_RunVisualStudioRemoveAndSortUsingStatements = true;
4949

50-
TestOperations.ExecuteCommandAndVerifyResults(RunRemoveUnusedUsingStatements, _projectItem, @"Data\RemoveUnusedUsingStatements_Cleaned.cs");
50+
TestOperations.ExecuteCommandAndVerifyResults(RunRemoveAndSortUsingStatements, _projectItem, @"Data\RemoveAndSortUsingStatements_Cleaned.cs");
5151
}
5252

5353
[TestMethod]
5454
[HostType("VS IDE")]
55-
public void CleaningVisualStudioRemoveUnusedUsingStatements_DoesNothingOnSecondPass()
55+
public void CleaningVisualStudioRemoveAndSortUsingStatements_DoesNothingOnSecondPass()
5656
{
57-
Settings.Default.Cleaning_RunVisualStudioRemoveUnusedUsingStatements = true;
57+
Settings.Default.Cleaning_RunVisualStudioRemoveAndSortUsingStatements = true;
5858

59-
TestOperations.ExecuteCommandTwiceAndVerifyNoChangesOnSecondPass(RunRemoveUnusedUsingStatements, _projectItem);
59+
TestOperations.ExecuteCommandTwiceAndVerifyNoChangesOnSecondPass(RunRemoveAndSortUsingStatements, _projectItem);
6060
}
6161

6262
[TestMethod]
6363
[HostType("VS IDE")]
64-
public void CleaningVisualStudioRemoveUnusedUsingStatements_DoesNothingWhenSettingIsDisabled()
64+
public void CleaningVisualStudioRemoveAndSortUsingStatements_DoesNothingWhenSettingIsDisabled()
6565
{
66-
Settings.Default.Cleaning_RunVisualStudioRemoveUnusedUsingStatements = false;
66+
Settings.Default.Cleaning_RunVisualStudioRemoveAndSortUsingStatements = false;
6767

68-
TestOperations.ExecuteCommandAndVerifyNoChanges(RunRemoveUnusedUsingStatements, _projectItem);
68+
TestOperations.ExecuteCommandAndVerifyNoChanges(RunRemoveAndSortUsingStatements, _projectItem);
6969
}
7070

7171
#endregion Tests
7272

7373
#region Helpers
7474

75-
private static void RunRemoveUnusedUsingStatements(Document document)
75+
private static void RunRemoveAndSortUsingStatements(Document document)
7676
{
77-
_usingStatementCleanupLogic.RemoveUnusedUsingStatements(document.GetTextDocument());
77+
_usingStatementCleanupLogic.RemoveAndSortUsingStatements(document.GetTextDocument());
7878
}
7979

8080
#endregion Helpers

CodeMaid.IntegrationTests/Cleaning/VisualStudio/SortUsingStatementsTests.cs

Lines changed: 0 additions & 81 deletions
This file was deleted.

0 commit comments

Comments
 (0)