Show the window before slow location probes and wrap git.exe for commit, diff, and merge.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-24 16:31:56 +02:00
parent a3c54bbb03
commit 9efb306979
42 changed files with 3184 additions and 77 deletions

View File

@@ -22,10 +22,10 @@ public sealed class WindowsWorkspaceLauncher : IWorkspaceLauncher
TryStart("cmd.exe", "/k cd /d " + Quote(dir));
}
public bool TryOpenInCursor(string directory)
public bool TryOpenInCursor(string path)
{
var dir = PathRules.FromExtended(directory);
if (!Directory.Exists(dir))
var target = PathRules.FromExtended(path);
if (!Directory.Exists(target) && !File.Exists(target))
{
return false;
}
@@ -33,10 +33,10 @@ public sealed class WindowsWorkspaceLauncher : IWorkspaceLauncher
var cursor = CursorLocator.Find();
if (cursor is not null)
{
return TryStart(cursor, Quote(dir));
return TryStart(cursor, Quote(target));
}
return TryStart("cursor", Quote(dir));
return TryStart("cursor", Quote(target));
}
private static bool TryStart(string fileName, string arguments)