Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Commit

Permalink
🎨 The most anal of cleanup
Browse files Browse the repository at this point in the history
Also disabled a R# warning so I stop seeing it since it doesn't apply.
  • Loading branch information
haacked committed Sep 23, 2015
1 parent d99b34a commit be83fce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/GitHub.Exports/Services/GitService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using GitHub.Primitives;
using LibGit2Sharp;
using Microsoft.VisualStudio.TeamFoundation.Git.Extensibility;
using GitHub.Extensions;

namespace GitHub.Services
{
Expand All @@ -21,7 +20,6 @@ public class GitService : IGitService
public UriString GetUri(IRepository repository)
{
return UriString.ToUriString(GetOriginUri(repository)?.ToRepositoryUrl());

}

/// <summary>
Expand Down
5 changes: 3 additions & 2 deletions src/GitHub.Exports/Services/Services.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public static IVsWebBrowsingService GetWebBrowsingService(this IServiceProvider

public static IVsOutputWindow OutputWindow => GetGlobalService<SVsOutputWindow, IVsOutputWindow>();

static IVsOutputWindowPane outputWindowPane = null;
static IVsOutputWindowPane outputWindowPane;
public static IVsOutputWindowPane OutputWindowPane
{
get
Expand All @@ -61,7 +61,7 @@ public static IVsOutputWindowPane OutputWindowPane
var uiShell = GetGlobalService<SVsUIShell, IVsUIShell>();
// Get the frame of the output window
var outputWindowGuid = new Guid("{34e76e81-ee4a-11d0-ae2e-00a0c90fffc3}");
IVsWindowFrame outputWindowFrame = null;
IVsWindowFrame outputWindowFrame;
ErrorHandler.ThrowOnFailure(uiShell.FindToolWindow((uint)__VSCREATETOOLWIN.CTW_fForceCreate, ref outputWindowGuid, out outputWindowFrame));
// Show the output window
if (outputWindowFrame != null)
Expand All @@ -78,6 +78,7 @@ public static IVsOutputWindowPane OutputWindowPane

public static DTE Dte => GetGlobalService<DTE, DTE>();

// ReSharper disable once SuspiciousTypeConversion.Global
public static DTE2 Dte2 => Dte as DTE2;

public static IVsActivityLog GetActivityLog(this IServiceProvider provider)
Expand Down

0 comments on commit be83fce

Please sign in to comment.