Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
jerviscui committed Jun 1, 2024
1 parent 7b114df commit 7c78579
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 18 deletions.
10 changes: 10 additions & 0 deletions src/.vserunonsave
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# All Files
[*]
vs_command_before = Edit.FormatDocument
vs_command_after =
ext_command_before =
ext_command_after =
output_string = $(FileName) saved!

[*.cs]
vs_command_before1 = EditorContextMenus.CodeWindow.Removeemptylines, EditorContextMenus.FileHealthIndicator.RunDefaultCodeCleanup, CodeRush.OrganizeMembers, CodeRush.CleanUpDocument, Edit.FormatDocument
10 changes: 0 additions & 10 deletions src/.vserunonsave1

This file was deleted.

5 changes: 3 additions & 2 deletions src/Example.CSharp.sln
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
ProjectSection(SolutionItems) = preProject
.editorconfig = .editorconfig
Directory.Build.props = Directory.Build.props
.vserunonsave = .vserunonsave
Example.CSharp.sln.DotSettings = Example.CSharp.sln.DotSettings
EndProjectSection
EndProject
Expand Down Expand Up @@ -251,9 +252,9 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AspNetCoreTest", "plugins\O
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TraceTest", "plugins\OpenTelemetry\TraceTest\TraceTest.csproj", "{7B6EC137-88CF-4212-AA8E-152EA02F5907}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MetricsTest", "plugins\OpenTelemetry\MetricsTest\MetricsTest.csproj", "{9D85DF38-55D2-4916-8BA5-16B290053583}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MetricsTest", "plugins\OpenTelemetry\MetricsTest\MetricsTest.csproj", "{9D85DF38-55D2-4916-8BA5-16B290053583}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CodeAnalysisTest", "Tests\CodeAnalysisTest\CodeAnalysisTest.csproj", "{28DB4ED1-D835-4B63-81C3-1D756FF3F541}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CodeAnalysisTest", "Tests\CodeAnalysisTest\CodeAnalysisTest.csproj", "{28DB4ED1-D835-4B63-81C3-1D756FF3F541}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
20 changes: 14 additions & 6 deletions src/Tests/CodeAnalysisTest/OrganizeMembersTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,23 +84,31 @@ public string StrProp
/// </summary>
private readonly int _myField;

private OrganizeMembersTest()
{
SetProps();

InterfaceProp = string.Empty;
InterfaceProp2 = string.Empty;
InterfaceProp1 = string.Empty;
}

/// <summary>
/// Initializes a new instance of the <see cref="OrganizeMembersTest" /> class.
/// </summary>
/// <param name="myField">My field.</param>
public OrganizeMembersTest(int myField)
public OrganizeMembersTest(int myField) : this()
{
SetProps();

_myField = myField;
_field1 = 0;
_field2 = 0;

PublicMehtod();
}

InterfaceProp = string.Empty;
InterfaceProp2 = string.Empty;
InterfaceProp1 = string.Empty;
protected OrganizeMembersTest(string paramName) : this()
{
Console.WriteLine(paramName);
}

// Field3
Expand Down

0 comments on commit 7c78579

Please sign in to comment.