Skip to content

Commit e654905

Browse files
committed
Move classes to separate files
1 parent 81de131 commit e654905

File tree

4 files changed

+28
-19
lines changed

4 files changed

+28
-19
lines changed

Diff for: src/Atc.AutoFormatter/Atc.AutoFormatter.csproj

+2
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,10 @@
5555
<Compile Include="Services\IDocumentLocator.cs" />
5656
<Compile Include="Properties\AssemblyInfo.cs" />
5757
<Compile Include="AutoFormatterPackage.cs" />
58+
<Compile Include="Wrappers\IRunningDocumentInfo.cs" />
5859
<Compile Include="Wrappers\IUndoProvider.cs" />
5960
<Compile Include="Wrappers\IVsTextViewProvider.cs" />
61+
<Compile Include="Wrappers\RunningDocumentInfoWrapper.cs" />
6062
<Compile Include="Wrappers\VsTextViewProvider.cs" />
6163
<Compile Include="Formatters\TrailingLineBreakRemover.cs" />
6264
<Compile Include="Wrappers\UndoProvider.cs" />
+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
namespace Atc.AutoFormatter.Wrappers
2+
{
3+
public interface IRunningDocumentInfo
4+
{
5+
string Moniker { get; }
6+
}
7+
}
+1-19
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
using Microsoft.VisualStudio.Shell;
2-
using Microsoft.VisualStudio.Shell.Interop;
1+
using Microsoft.VisualStudio.Shell.Interop;
32

43
namespace Atc.AutoFormatter.Wrappers
54
{
@@ -8,21 +7,4 @@ public interface IRunningDocumentTable
87
IRunningDocumentInfo GetDocumentInfo(uint docCookie);
98
uint Advise(IVsRunningDocTableEvents sink);
109
}
11-
12-
public interface IRunningDocumentInfo
13-
{
14-
string Moniker { get; }
15-
}
16-
17-
public class RunningDocumentInfoWrapper : IRunningDocumentInfo
18-
{
19-
private readonly RunningDocumentInfo info;
20-
21-
public RunningDocumentInfoWrapper(RunningDocumentInfo info)
22-
{
23-
this.info = info;
24-
}
25-
26-
public string Moniker => info.Moniker;
27-
}
2810
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
using System.Diagnostics.CodeAnalysis;
2+
using Microsoft.VisualStudio.Shell;
3+
4+
namespace Atc.AutoFormatter.Wrappers
5+
{
6+
[ExcludeFromCodeCoverage]
7+
public class RunningDocumentInfoWrapper : IRunningDocumentInfo
8+
{
9+
private readonly RunningDocumentInfo info;
10+
11+
public RunningDocumentInfoWrapper(RunningDocumentInfo info)
12+
{
13+
this.info = info;
14+
}
15+
16+
public string Moniker => info.Moniker;
17+
}
18+
}

0 commit comments

Comments
 (0)