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 44using GitHub . Primitives ;
55using LibGit2Sharp ;
66using Microsoft . VisualStudio . TeamFoundation . Git . Extensibility ;
7- using GitHub . Extensions ;
87
98namespace GitHub . Services
109{
@@ -21,7 +20,6 @@ public class GitService : IGitService
2120 public UriString GetUri ( IRepository repository )
2221 {
2322 return UriString . ToUriString ( GetOriginUri ( repository ) ? . ToRepositoryUrl ( ) ) ;
24-
2523 }
2624
2725 /// <summary>
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ public static IVsWebBrowsingService GetWebBrowsingService(this IServiceProvider
5050
5151 public static IVsOutputWindow OutputWindow => GetGlobalService < SVsOutputWindow , IVsOutputWindow > ( ) ;
5252
53- static IVsOutputWindowPane outputWindowPane = null ;
53+ static IVsOutputWindowPane outputWindowPane ;
5454 public static IVsOutputWindowPane OutputWindowPane
5555 {
5656 get
@@ -61,7 +61,7 @@ public static IVsOutputWindowPane OutputWindowPane
6161 var uiShell = GetGlobalService < SVsUIShell , IVsUIShell > ( ) ;
6262 // Get the frame of the output window
6363 var outputWindowGuid = new Guid ( "{34e76e81-ee4a-11d0-ae2e-00a0c90fffc3}" ) ;
64- IVsWindowFrame outputWindowFrame = null ;
64+ IVsWindowFrame outputWindowFrame ;
6565 ErrorHandler . ThrowOnFailure ( uiShell . FindToolWindow ( ( uint ) __VSCREATETOOLWIN . CTW_fForceCreate , ref outputWindowGuid , out outputWindowFrame ) ) ;
6666 // Show the output window
6767 if ( outputWindowFrame != null )
@@ -78,6 +78,7 @@ public static IVsOutputWindowPane OutputWindowPane
7878
7979 public static DTE Dte => GetGlobalService < DTE , DTE > ( ) ;
8080
81+ // ReSharper disable once SuspiciousTypeConversion.Global
8182 public static DTE2 Dte2 => Dte as DTE2 ;
8283
8384 public static IVsActivityLog GetActivityLog ( this IServiceProvider provider )
You can’t perform that action at this time.
0 commit comments