File tree 4 files changed +28
-19
lines changed
4 files changed +28
-19
lines changed Original file line number Diff line number Diff line change 55
55
<Compile Include =" Services\IDocumentLocator.cs" />
56
56
<Compile Include =" Properties\AssemblyInfo.cs" />
57
57
<Compile Include =" AutoFormatterPackage.cs" />
58
+ <Compile Include =" Wrappers\IRunningDocumentInfo.cs" />
58
59
<Compile Include =" Wrappers\IUndoProvider.cs" />
59
60
<Compile Include =" Wrappers\IVsTextViewProvider.cs" />
61
+ <Compile Include =" Wrappers\RunningDocumentInfoWrapper.cs" />
60
62
<Compile Include =" Wrappers\VsTextViewProvider.cs" />
61
63
<Compile Include =" Formatters\TrailingLineBreakRemover.cs" />
62
64
<Compile Include =" Wrappers\UndoProvider.cs" />
Original file line number Diff line number Diff line change
1
+ namespace Atc . AutoFormatter . Wrappers
2
+ {
3
+ public interface IRunningDocumentInfo
4
+ {
5
+ string Moniker { get ; }
6
+ }
7
+ }
Original file line number Diff line number Diff line change 1
- using Microsoft . VisualStudio . Shell ;
2
- using Microsoft . VisualStudio . Shell . Interop ;
1
+ using Microsoft . VisualStudio . Shell . Interop ;
3
2
4
3
namespace Atc . AutoFormatter . Wrappers
5
4
{
@@ -8,21 +7,4 @@ public interface IRunningDocumentTable
8
7
IRunningDocumentInfo GetDocumentInfo ( uint docCookie ) ;
9
8
uint Advise ( IVsRunningDocTableEvents sink ) ;
10
9
}
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
- }
28
10
}
Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments