99using GitHub . VisualStudio ;
1010using Microsoft . VisualStudio ;
1111using Microsoft . VisualStudio . Shell . Interop ;
12- using Microsoft . Win32 ;
13- using System . Diagnostics ;
1412using GitHub . TeamFoundation ;
1513using Microsoft . TeamFoundation . Git . Controls . Extensibility ;
1614using Microsoft . VisualStudio . TeamFoundation . Git . Extensibility ;
1715
1816namespace GitHub . Services
1917{
20- [ Export ( typeof ( IVSServices ) ) ]
18+ [ Export ( typeof ( IVSGitServices ) ) ]
2119 [ PartCreationPolicy ( CreationPolicy . Shared ) ]
22- public class VSServices : IVSServices
20+ public class VSGitServices : IVSGitServices
2321 {
2422 readonly IUIProvider serviceProvider ;
2523
@@ -32,7 +30,7 @@ public class VSServices : IVSServices
3230 IGitExt gitExtService ;
3331
3432 [ ImportingConstructor ]
35- public VSServices ( IUIProvider serviceProvider )
33+ public VSGitServices ( IUIProvider serviceProvider )
3634 {
3735 this . serviceProvider = serviceProvider ;
3836 }
@@ -104,39 +102,5 @@ public string SetDefaultProjectPath(string path)
104102 {
105103 return RegistryHelper . SetDefaultProjectPath ( path ) ;
106104 }
107-
108- public void ActivityLogMessage ( string message )
109- {
110- var log = serviceProvider . GetActivityLog ( ) ;
111- if ( log != null )
112- {
113- if ( ! ErrorHandler . Succeeded ( log . LogEntry ( ( UInt32 ) __ACTIVITYLOG_ENTRYTYPE . ALE_INFORMATION ,
114- Info . ApplicationInfo . ApplicationSafeName , message ) ) )
115- Console . WriteLine ( string . Format ( CultureInfo . CurrentCulture , "Could not log message to activity log: {0}" , message ) ) ;
116- }
117- }
118-
119- public void ActivityLogError ( string message )
120- {
121- var log = serviceProvider . GetActivityLog ( ) ;
122- if ( log != null )
123- {
124-
125- if ( ! ErrorHandler . Succeeded ( log . LogEntry ( ( UInt32 ) __ACTIVITYLOG_ENTRYTYPE . ALE_ERROR ,
126- Info . ApplicationInfo . ApplicationSafeName , message ) ) )
127- Console . WriteLine ( string . Format ( CultureInfo . CurrentCulture , "Could not log error to activity log: {0}" , message ) ) ;
128- }
129- }
130-
131- public void ActivityLogWarning ( string message )
132- {
133- var log = serviceProvider . GetActivityLog ( ) ;
134- if ( log != null )
135- {
136- if ( ! ErrorHandler . Succeeded ( log . LogEntry ( ( UInt32 ) __ACTIVITYLOG_ENTRYTYPE . ALE_WARNING ,
137- Info . ApplicationInfo . ApplicationSafeName , message ) ) )
138- Console . WriteLine ( string . Format ( CultureInfo . CurrentCulture , "Could not log warning to activity log: {0}" , message ) ) ;
139- }
140- }
141105 }
142106}
0 commit comments