1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-15 23:04:09 +02:00

Dictionary fixes for large containers, watch fixes for containers

This commit is contained in:
Brian Fiete 2019-10-09 16:18:11 -07:00
parent 5af6428bf4
commit 609dbfa256
5 changed files with 68 additions and 30 deletions

View file

@ -77,7 +77,8 @@ namespace IDE
New,
OpenOrNew,
Test,
Run
Run,
GetVersion
}
enum HotResolveState
@ -9845,6 +9846,18 @@ namespace IDE
}
}
public FileVersionInfo GetVersionInfo()
{
if (mVersionInfo == null)
{
String exeFilePath = scope .();
Environment.GetExecutableFilePath(exeFilePath);
mVersionInfo = new .();
mVersionInfo.GetVersionInfo(exeFilePath).IgnoreError();
}
return mVersionInfo;
}
#if !CLI
public override void Init()
{
@ -9970,10 +9983,7 @@ namespace IDE
mAutoCompletePanel = new AutoCompletePanel();
mAutoCompletePanel.mAutoDelete = false;
String exeFilePath = scope .();
Environment.GetExecutableFilePath(exeFilePath);
mVersionInfo = new .();
mVersionInfo.GetVersionInfo(exeFilePath).IgnoreError();
GetVersionInfo();
OutputLine("IDE Started. Version {}.", mVersionInfo.FileVersion);
/*if (!mRunningTestScript)
@ -11546,7 +11556,6 @@ namespace IDE
{
if (editData.mLoadedHash.GetKind() != .None)
{
File.WriteAllText(@"c:\temp\test.txt", editData.mQueuedContent).IgnoreError();
editData.mLoadedHash = SourceHash.Create(editData.mLoadedHash.GetKind(), editData.mQueuedContent);
}
}) case .Err(let err))