This repository was archived by the owner on Jun 21, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
src/GitHub.Exports/Services Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 4
4
using GitHub . Primitives ;
5
5
using LibGit2Sharp ;
6
6
using Microsoft . VisualStudio . TeamFoundation . Git . Extensibility ;
7
- using GitHub . Extensions ;
8
7
9
8
namespace GitHub . Services
10
9
{
@@ -21,7 +20,6 @@ public class GitService : IGitService
21
20
public UriString GetUri ( IRepository repository )
22
21
{
23
22
return UriString . ToUriString ( GetOriginUri ( repository ) ? . ToRepositoryUrl ( ) ) ;
24
-
25
23
}
26
24
27
25
/// <summary>
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ public static IVsWebBrowsingService GetWebBrowsingService(this IServiceProvider
50
50
51
51
public static IVsOutputWindow OutputWindow => GetGlobalService < SVsOutputWindow , IVsOutputWindow > ( ) ;
52
52
53
- static IVsOutputWindowPane outputWindowPane = null ;
53
+ static IVsOutputWindowPane outputWindowPane ;
54
54
public static IVsOutputWindowPane OutputWindowPane
55
55
{
56
56
get
@@ -61,7 +61,7 @@ public static IVsOutputWindowPane OutputWindowPane
61
61
var uiShell = GetGlobalService < SVsUIShell , IVsUIShell > ( ) ;
62
62
// Get the frame of the output window
63
63
var outputWindowGuid = new Guid ( "{34e76e81-ee4a-11d0-ae2e-00a0c90fffc3}" ) ;
64
- IVsWindowFrame outputWindowFrame = null ;
64
+ IVsWindowFrame outputWindowFrame ;
65
65
ErrorHandler . ThrowOnFailure ( uiShell . FindToolWindow ( ( uint ) __VSCREATETOOLWIN . CTW_fForceCreate , ref outputWindowGuid , out outputWindowFrame ) ) ;
66
66
// Show the output window
67
67
if ( outputWindowFrame != null )
@@ -78,6 +78,7 @@ public static IVsOutputWindowPane OutputWindowPane
78
78
79
79
public static DTE Dte => GetGlobalService < DTE , DTE > ( ) ;
80
80
81
+ // ReSharper disable once SuspiciousTypeConversion.Global
81
82
public static DTE2 Dte2 => Dte as DTE2 ;
82
83
83
84
public static IVsActivityLog GetActivityLog ( this IServiceProvider provider )
You can’t perform that action at this time.
0 commit comments