зеркало из https://github.com/github/VisualStudio.git
Merge branch 'refactor/sdk-csproj' into refactor/clone
This commit is contained in:
Коммит
17911a96d0
|
@ -9,6 +9,7 @@ using GitHub.Models;
|
||||||
using GitHub.Services;
|
using GitHub.Services;
|
||||||
using Microsoft.Win32;
|
using Microsoft.Win32;
|
||||||
using Serilog;
|
using Serilog;
|
||||||
|
using static System.FormattableString;
|
||||||
|
|
||||||
namespace GitHub.TeamFoundation
|
namespace GitHub.TeamFoundation
|
||||||
{
|
{
|
||||||
|
@ -18,7 +19,7 @@ namespace GitHub.TeamFoundation
|
||||||
|
|
||||||
static RegistryKey OpenGitKey(string path)
|
static RegistryKey OpenGitKey(string path)
|
||||||
{
|
{
|
||||||
var keyName = $"Software\\Microsoft\\VisualStudio\\{MajorVersion}.0\\TeamFoundation\\GitSourceControl\\{path}";
|
var keyName = Invariant($"Software\\Microsoft\\VisualStudio\\{MajorVersion}.0\\TeamFoundation\\GitSourceControl\\{path}");
|
||||||
return Registry.CurrentUser.OpenSubKey(keyName, true);
|
return Registry.CurrentUser.OpenSubKey(keyName, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -64,7 +65,7 @@ namespace GitHub.TeamFoundation
|
||||||
const string MRUKeyPath = "MRUSettingsLocalProjectLocationEntries";
|
const string MRUKeyPath = "MRUSettingsLocalProjectLocationEntries";
|
||||||
internal static string SetDefaultProjectPath(string path)
|
internal static string SetDefaultProjectPath(string path)
|
||||||
{
|
{
|
||||||
var newProjectDialogKeyPath = $"Software\\Microsoft\\VisualStudio\\{MajorVersion}.0\\NewProjectDialog";
|
var newProjectDialogKeyPath = Invariant($"Software\\Microsoft\\VisualStudio\\{MajorVersion}.0\\NewProjectDialog");
|
||||||
|
|
||||||
var old = String.Empty;
|
var old = String.Empty;
|
||||||
try
|
try
|
||||||
|
|
|
@ -17,7 +17,7 @@ using static Microsoft.VisualStudio.VSConstants;
|
||||||
|
|
||||||
public class VSGitExtTests
|
public class VSGitExtTests
|
||||||
{
|
{
|
||||||
public class TheConstructor
|
public class TheConstructor : TestBaseClass
|
||||||
{
|
{
|
||||||
[TestCase(true, 1)]
|
[TestCase(true, 1)]
|
||||||
[TestCase(false, 0)]
|
[TestCase(false, 0)]
|
||||||
|
@ -63,7 +63,7 @@ public class VSGitExtTests
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public class TheActiveRepositoriesChangedEvent
|
public class TheActiveRepositoriesChangedEvent : TestBaseClass
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void GitExtPropertyChangedEvent_ActiveRepositoriesChangedIsFired()
|
public void GitExtPropertyChangedEvent_ActiveRepositoriesChangedIsFired()
|
||||||
|
@ -133,7 +133,7 @@ public class VSGitExtTests
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public class TheActiveRepositoriesProperty
|
public class TheActiveRepositoriesProperty : TestBaseClass
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void RepositoryOpenContextNotActive_IsEmpty()
|
public void RepositoryOpenContextNotActive_IsEmpty()
|
||||||
|
|
Загрузка…
Ссылка в новой задаче