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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user