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

Commit ad4627b

Browse files
committed
Merge branch 'refactor/sdk-csproj' into refactor/clone
2 parents 7429224 + e5f8504 commit ad4627b

File tree

13 files changed

+65
-21
lines changed

13 files changed

+65
-21
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Official builds of this extension are available at [the official website](https:
1919

2020

2121
[![Build status](https://ci.appveyor.com/api/projects/status/dl8is5iqwt9qf3t7/branch/master?svg=true)](https://ci.appveyor.com/project/github-windows/visualstudio/branch/master)
22+
[![codecov](https://codecov.io/gh/GitHub/VisualStudio/branch/master/graph/badge.svg)](https://codecov.io/gh/GitHub/VisualStudio)
2223

2324
[![Join the chat at freenode:github-vs](https://img.shields.io/badge/irc-freenode:%20%23github--vs-blue.svg)](http://webchat.freenode.net/?channels=%23github-vs) [![Join the chat at https://gitter.im/github/VisualStudio](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/github/VisualStudio?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
2425

appveyor.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
os: Visual Studio 2017
2-
version: '2.5.5.{build}'
2+
version: '2.5.6.{build}'
33
skip_tags: true
44
install:
55
- ps: |
@@ -24,6 +24,11 @@ test:
2424
categories:
2525
except:
2626
- Timings
27+
after_test:
28+
- ps: |
29+
choco install --no-progress opencover.portable codecov
30+
OpenCover.Console.exe --% "-target:nunit3-console.exe" "-targetargs: test\GitHub.Api.UnitTests\bin\Release\GitHub.Api.UnitTests.dll test\GitHub.App.UnitTests\bin\Release\GitHub.App.UnitTests.dll test\GitHub.Exports.Reactive.UnitTests\bin\Release\GitHub.Exports.Reactive.UnitTests.dll test\GitHub.Exports.UnitTests\bin\Release\GitHub.Exports.UnitTests.dll test\GitHub.Extensions.UnitTests\bin\Release\GitHub.Extensions.UnitTests.dll test\GitHub.InlineReviews.UnitTests\bin\Release\GitHub.InlineReviews.UnitTests.dll test\GitHub.Primitives.UnitTests\bin\Release\GitHub.Primitives.UnitTests.dll test\GitHub.TeamFoundation.UnitTests\bin\Release\GitHub.TeamFoundation.UnitTests.dll test\GitHub.UI.UnitTests\bin\Release\GitHub.UI.UnitTests.dll test\GitHub.VisualStudio.UnitTests\bin\Release\GitHub.VisualStudio.UnitTests.dll test\MetricsTests\MetricsTests\bin\Release\MetricsTests.dll test\TrackingCollectionTests\bin\Release\TrackingCollectionTests.dll --where cat!=Timings --inprocess --noresult" -filter:"+[GitHub*]* -[GitHub*UnitTests]*" -register:user -output:".\coverage.xml"
31+
codecov -f "coverage.xml"
2732
on_success:
2833
- ps: |
2934
if ($full_build) {

codecov.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
codecov:
2+
notify:
3+
require_ci_to_pass: yes
4+
5+
coverage:
6+
precision: 2
7+
round: down
8+
range: "70...100"
9+
10+
status:
11+
project: yes
12+
patch: yes
13+
changes: yes
14+
15+
parsers:
16+
gcov:
17+
branch_detection:
18+
conditional: yes
19+
loop: yes
20+
method: no
21+
macro: no
22+
23+
comment:
24+
layout: "header, reach, diff, files"
25+
behavior: new
26+
require_changes: no
27+
28+
fixes:
29+
- "/C/projects/visualstudio/::"

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"msbuild-sdks": {
3-
"MSBuild.Sdk.Extras": "1.6.47"
3+
"MSBuild.Sdk.Extras": "1.6.52"
44
}
55
}

scripts/modules.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ New-Module -ScriptBlock {
126126

127127
$msbuild = Find-MSBuild
128128

129-
Write-Host "$msbuild $solution /target:$target /property:Configuration=$configuration /p:DeployExtension=false /verbosity:minimal /p:VisualStudioVersion=14.0 $flag1 $flag2"
130-
Run-Command -Fatal { & $msbuild $solution /target:$target /property:Configuration=$configuration /p:DeployExtension=false /verbosity:minimal /p:VisualStudioVersion=14.0 $flag1 $flag2 }
129+
Write-Host "$msbuild $solution /target:$target /property:Configuration=$configuration /p:DeployExtension=false /verbosity:minimal /p:VisualStudioVersion=15.0 $flag1 $flag2"
130+
Run-Command -Fatal { & $msbuild $solution /target:$target /property:Configuration=$configuration /p:DeployExtension=false /verbosity:minimal /p:VisualStudioVersion=15.0 $flag1 $flag2 }
131131
}
132132

133133
Export-ModuleMember -Function Find-MSBuild,Build-Solution

src/GitHub.InlineReviews/Services/CommentService.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System.ComponentModel.Composition;
2+
using System.Globalization;
23
using System.Windows.Forms;
34

45
namespace GitHub.InlineReviews.Services
@@ -9,11 +10,17 @@ public class CommentService:ICommentService
910
{
1011
public bool ConfirmCommentDelete()
1112
{
13+
var options = CultureInfo.CurrentUICulture.TextInfo.IsRightToLeft ?
14+
MessageBoxOptions.RtlReading | MessageBoxOptions.RightAlign :
15+
0;
16+
1217
return MessageBox.Show(
1318
VisualStudio.UI.Resources.DeleteCommentConfirmation,
1419
VisualStudio.UI.Resources.DeleteCommentConfirmationCaption,
1520
MessageBoxButtons.YesNo,
16-
MessageBoxIcon.Question) == DialogResult.Yes;
21+
MessageBoxIcon.Question,
22+
MessageBoxDefaultButton.Button1,
23+
options) == DialogResult.Yes;
1724
}
1825
}
1926
}

src/GitHub.TeamFoundation.14/Services/TeamExplorerServices.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using System;
22
using System.ComponentModel.Composition;
3+
using System.Diagnostics.CodeAnalysis;
34
using System.Windows.Input;
45
using GitHub.Extensions;
56
using GitHub.VisualStudio.TeamExplorer.Sync;
@@ -19,7 +20,7 @@ public class TeamExplorerServices : ITeamExplorerServices
1920
/// that instances of this type cannot be created if the TeamFoundation dlls are not available
2021
/// (otherwise we'll have multiple instances of ITeamExplorerServices exports, and that would be Bad(tm))
2122
/// </summary>
22-
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
23+
[SuppressMessage("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
2324
ITeamExplorerNotificationManager manager;
2425

2526
[ImportingConstructor]
@@ -31,14 +32,14 @@ public TeamExplorerServices(IGitHubServiceProvider serviceProvider)
3132
public void ShowConnectPage()
3233
{
3334
var te = serviceProvider.TryGetService<ITeamExplorer>();
34-
var foo = te.NavigateToPage(new Guid(TeamExplorerPageIds.Connect), null);
35+
te.NavigateToPage(new Guid(TeamExplorerPageIds.Connect), null);
3536
}
3637

3738
public void ShowPublishSection()
3839
{
3940
var te = serviceProvider.TryGetService<ITeamExplorer>();
40-
var foo = te.NavigateToPage(new Guid(TeamExplorerPageIds.GitCommits), null);
41-
var publish = foo?.GetSection(new Guid(GitHubPublishSection.GitHubPublishSectionId)) as GitHubPublishSection;
41+
var page = te.NavigateToPage(new Guid(TeamExplorerPageIds.GitCommits), null);
42+
var publish = page?.GetSection(new Guid(GitHubPublishSection.GitHubPublishSectionId)) as GitHubPublishSection;
4243
publish?.Connect();
4344
}
4445

src/GitHub.VisualStudio/Commands/GoToSolutionOrPullRequestFileCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ bool TryNavigateFromHistoryFile(IVsTextView sourceView)
237237
if (teamExplorerContext.Value.ActiveRepository?.LocalPath is string repositoryDir &&
238238
FindObjectishForTFSTempFile(sourceView) is string objectish)
239239
{
240-
var (commitSha, blobPath) = gitHubContextService.Value.ResolveBlobFromHistory(repositoryDir, objectish);
240+
var (_, blobPath) = gitHubContextService.Value.ResolveBlobFromHistory(repositoryDir, objectish);
241241
if (blobPath is string)
242242
{
243243
var workingFile = Path.Combine(repositoryDir, blobPath);

src/GitHub.VisualStudio/Commands/OpenFromUrlCommand.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ public class OpenFromUrlCommand : VsCommand<string>, IOpenFromUrlCommand
2020
{
2121
readonly Lazy<IGitHubContextService> gitHubContextService;
2222
readonly Lazy<IRepositoryCloneService> repositoryCloneService;
23-
readonly Lazy<IPullRequestEditorService> pullRequestEditorService;
2423
readonly Lazy<ITeamExplorerContext> teamExplorerContext;
2524
readonly Lazy<IGitHubToolWindowManager> gitHubToolWindowManager;
2625
readonly Lazy<DTE> dte;
@@ -40,14 +39,12 @@ public class OpenFromUrlCommand : VsCommand<string>, IOpenFromUrlCommand
4039
public OpenFromUrlCommand(
4140
Lazy<IGitHubContextService> gitHubContextService,
4241
Lazy<IRepositoryCloneService> repositoryCloneService,
43-
Lazy<IPullRequestEditorService> pullRequestEditorService,
4442
Lazy<ITeamExplorerContext> teamExplorerContext,
4543
[Import(typeof(SVsServiceProvider))] IServiceProvider serviceProvider) :
4644
base(CommandSet, CommandId)
4745
{
4846
this.gitHubContextService = gitHubContextService;
4947
this.repositoryCloneService = repositoryCloneService;
50-
this.pullRequestEditorService = pullRequestEditorService;
5148
this.teamExplorerContext = teamExplorerContext;
5249
this.serviceProvider = serviceProvider;
5350
dte = new Lazy<DTE>(() => (DTE)serviceProvider.GetService(typeof(DTE)));

src/GitHub.VisualStudio/GitHub.VisualStudio.vsct

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
xmlns="http://schemas.microsoft.com/VisualStudio/2005-10-18/CommandTable"
44
xmlns:xs="http://www.w3.org/2001/XMLSchema">
55

6+
<!-- Import the standard ImageCatalogGuid monikers -->
7+
<Include href="KnownImageIds.vsct"/>
8+
69
<!-- This is the file that defines the actual layout and type of the commands.
710
It is divided in different sections (e.g. command definition, command
811
placement, ...), with each defining a specific set of properties.
@@ -138,7 +141,7 @@
138141

139142
<!--- Toolbar buttons -->
140143
<Button guid="guidGitHubToolbarCmdSet" id="backCommand" type="Button">
141-
<Icon guid="guidImages" id="arrow_left" />
144+
<Icon guid="ImageCatalogGuid" id="Backwards" />
142145
<CommandFlag>IconIsMoniker</CommandFlag>
143146
<CommandFlag>DefaultDisabled</CommandFlag>
144147
<Strings>
@@ -149,7 +152,7 @@
149152
</Button>
150153

151154
<Button guid="guidGitHubToolbarCmdSet" id="forwardCommand" type="Button">
152-
<Icon guid="guidImages" id="arrow_right" />
155+
<Icon guid="ImageCatalogGuid" id="Forwards" />
153156
<CommandFlag>IconIsMoniker</CommandFlag>
154157
<CommandFlag>DefaultDisabled</CommandFlag>
155158
<Strings>
@@ -171,7 +174,7 @@
171174
</Button>
172175

173176
<Button guid="guidGitHubToolbarCmdSet" id="refreshCommand" type="Button">
174-
<Icon guid="guidImages" id="refresh" />
177+
<Icon guid="ImageCatalogGuid" id="Refresh" />
175178
<CommandFlag>IconIsMoniker</CommandFlag>
176179
<CommandFlag>DefaultDisabled</CommandFlag>
177180
<Strings>
@@ -182,7 +185,7 @@
182185
</Button>
183186

184187
<Button guid="guidGitHubToolbarCmdSet" id="githubCommand" type="Button">
185-
<Icon guid="guidImages" id="logo_toolbar" />
188+
<Icon guid="ImageCatalogGuid" id="OpenWebSite" />
186189
<CommandFlag>IconIsMoniker</CommandFlag>
187190
<CommandFlag>DefaultDisabled</CommandFlag>
188191
<Strings>
@@ -193,7 +196,7 @@
193196
</Button>
194197

195198
<Button guid="guidGitHubToolbarCmdSet" id="helpCommand" type="Button">
196-
<Icon guid="guidImages" id="question" />
199+
<Icon guid="ImageCatalogGuid" id="StatusHelp" />
197200
<CommandFlag>IconIsMoniker</CommandFlag>
198201
<Strings>
199202
<ButtonText>Help</ButtonText>
@@ -227,7 +230,7 @@
227230
</Button>
228231

229232
<Button guid="guidContextMenuSet" id="openLinkCommand" type="Button">
230-
<Icon guid="guidImages" id="link_external" />
233+
<Icon guid="ImageCatalogGuid" id="OpenWebSite" />
231234
<CommandFlag>IconIsMoniker</CommandFlag>
232235
<CommandFlag>DefaultInvisible</CommandFlag>
233236
<CommandFlag>DynamicVisibility</CommandFlag>

0 commit comments

Comments
 (0)