refactor: rewrite external editor supports

* supported editors can be different on different platforms.
* display founded editors only
This commit is contained in:
leo 2024-04-06 13:14:22 +08:00
parent bcb83af576
commit 111bf2966a
20 changed files with 417 additions and 220 deletions

View file

@ -1600,7 +1600,7 @@ namespace SourceGit.Resources {
}
/// <summary>
/// Looks up a localized string similar to GIT FLOW.
/// Looks up a localized string similar to Git-Flow.
/// </summary>
public static string Text_GitFlow {
get {
@ -2985,15 +2985,6 @@ namespace SourceGit.Resources {
}
}
/// <summary>
/// Looks up a localized string similar to Open In Fleet.
/// </summary>
public static string Text_Repository_Fleet {
get {
return ResourceManager.GetString("Text.Repository.Fleet", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to LOCAL BRANCHES.
/// </summary>
@ -3013,7 +3004,7 @@ namespace SourceGit.Resources {
}
/// <summary>
/// Looks up a localized string similar to NEW BRANCH.
/// Looks up a localized string similar to Create Branch.
/// </summary>
public static string Text_Repository_NewBranch {
get {
@ -3021,12 +3012,21 @@ namespace SourceGit.Resources {
}
}
/// <summary>
/// Looks up a localized string similar to Open In {0}.
/// </summary>
public static string Text_Repository_OpenIn {
get {
return ResourceManager.GetString("Text.Repository.OpenIn", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Open In External Tools.
/// </summary>
public static string Text_Repository_OpenWith {
public static string Text_Repository_OpenWithExternalTools {
get {
return ResourceManager.GetString("Text.Repository.OpenWith", resourceCulture);
return ResourceManager.GetString("Text.Repository.OpenWithExternalTools", resourceCulture);
}
}
@ -3147,15 +3147,6 @@ namespace SourceGit.Resources {
}
}
/// <summary>
/// Looks up a localized string similar to Open In Visual Studio Code.
/// </summary>
public static string Text_Repository_VSCode {
get {
return ResourceManager.GetString("Text.Repository.VSCode", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to WORKSPACE.
/// </summary>