mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 12:02:21 +02:00
Fixed -workspace arg which includes BeefSpace.toml name
This commit is contained in:
parent
2576ae6bae
commit
1a164b166f
1 changed files with 12 additions and 5 deletions
|
@ -2897,12 +2897,16 @@ namespace IDE
|
|||
}
|
||||
|
||||
public void GetRelaunchCmd(bool safeMode, String outRelaunchCmd)
|
||||
{
|
||||
if (mWorkspace.mDir != null)
|
||||
{
|
||||
outRelaunchCmd.Append("\"");
|
||||
Environment.GetExecutableFilePath(outRelaunchCmd);
|
||||
outRelaunchCmd.Append("\" -workspace=\"");
|
||||
outRelaunchCmd.Append(mWorkspace.mDir);
|
||||
outRelaunchCmd.Append("\"");
|
||||
}
|
||||
|
||||
if (safeMode)
|
||||
outRelaunchCmd.Append(" -safe");
|
||||
}
|
||||
|
@ -7541,6 +7545,9 @@ namespace IDE
|
|||
String fullDir = new String();
|
||||
Path.GetFullPath(relDir, fullDir);
|
||||
|
||||
if (fullDir.EndsWith("BeefSpace.toml", .OrdinalIgnoreCase))
|
||||
fullDir.RemoveFromEnd("BeefSpace.toml".Length);
|
||||
|
||||
if ((File.Exists(fullDir)) || (IsBeefFile(fullDir)))
|
||||
{
|
||||
mWorkspace.mCompositeFile = new CompositeFile(fullDir);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue