|
4 | 4 | using System.IO; |
5 | 5 | using System.Linq; |
6 | 6 | using GitHub.Logging; |
7 | | -using GitHub.VisualStudio; |
8 | | -using Microsoft.VisualStudio; |
9 | | -using Microsoft.VisualStudio.Shell.Interop; |
10 | 7 | using Rothko; |
11 | 8 | using Serilog; |
12 | | -using DTE = EnvDTE.DTE; |
| 9 | +using EnvDTE; |
13 | 10 |
|
14 | 11 | namespace GitHub.Services |
15 | 12 | { |
@@ -46,40 +43,6 @@ public string VSVersion |
46 | 43 | } |
47 | 44 | } |
48 | 45 |
|
49 | | - public void ActivityLogMessage(string message) |
50 | | - { |
51 | | - var log = serviceProvider.GetActivityLog(); |
52 | | - if (log != null) |
53 | | - { |
54 | | - if (!ErrorHandler.Succeeded(log.LogEntry((UInt32)__ACTIVITYLOG_ENTRYTYPE.ALE_INFORMATION, |
55 | | - Info.ApplicationInfo.ApplicationSafeName, message))) |
56 | | - Console.WriteLine(string.Format(CultureInfo.CurrentCulture, "Could not log message to activity log: {0}", message)); |
57 | | - } |
58 | | - } |
59 | | - |
60 | | - public void ActivityLogError(string message) |
61 | | - { |
62 | | - var log = serviceProvider.GetActivityLog(); |
63 | | - if (log != null) |
64 | | - { |
65 | | - |
66 | | - if (!ErrorHandler.Succeeded(log.LogEntry((UInt32)__ACTIVITYLOG_ENTRYTYPE.ALE_ERROR, |
67 | | - Info.ApplicationInfo.ApplicationSafeName, message))) |
68 | | - Console.WriteLine(string.Format(CultureInfo.CurrentCulture, "Could not log error to activity log: {0}", message)); |
69 | | - } |
70 | | - } |
71 | | - |
72 | | - public void ActivityLogWarning(string message) |
73 | | - { |
74 | | - var log = serviceProvider.GetActivityLog(); |
75 | | - if (log != null) |
76 | | - { |
77 | | - if (!ErrorHandler.Succeeded(log.LogEntry((UInt32)__ACTIVITYLOG_ENTRYTYPE.ALE_WARNING, |
78 | | - Info.ApplicationInfo.ApplicationSafeName, message))) |
79 | | - Console.WriteLine(string.Format(CultureInfo.CurrentCulture, "Could not log warning to activity log: {0}", message)); |
80 | | - } |
81 | | - } |
82 | | - |
83 | 46 | /// <summary>Open a repository in Team Explorer</summary> |
84 | 47 | /// <remarks> |
85 | 48 | /// There doesn't appear to be a command that directly opens a target repo. |
|
0 commit comments