This commit is contained in:
Daniel Mills 2020-08-16 16:15:58 -04:00
parent 2407c3f2f8
commit c07b4e9f98
2 changed files with 2 additions and 9 deletions

View File

@ -572,13 +572,12 @@ public class ProjectManager
jc.put("editor.suggest.showKeywords", false); jc.put("editor.suggest.showKeywords", false);
jc.put("editor.suggest.showSnippets", false); jc.put("editor.suggest.showSnippets", false);
jc.put("editor.suggest.showWords", false); jc.put("editor.suggest.showWords", false);
jc.put("json.maxItemsComputed", 50000);
JSONObject st = new JSONObject(); JSONObject st = new JSONObject();
st.put("strings", true); st.put("strings", true);
jc.put("editor.quickSuggestions", st); jc.put("editor.quickSuggestions", st);
jc.put("editor.suggest.insertMode", "replace"); jc.put("editor.suggest.insertMode", "replace");
settings.put("[json]", jc); settings.put("[json]", jc);
settings.put("json.maxItemsComputed", 50000); settings.put("json.maxItemsComputed", 15000);
JSONArray schemas = buildSchemas(Iris.globaldata); JSONArray schemas = buildSchemas(Iris.globaldata);
settings.put("json.schemas", schemas); settings.put("json.schemas", schemas);

View File

@ -1,7 +1,6 @@
package com.volmit.iris.gen; package com.volmit.iris.gen;
import java.awt.Color; import java.awt.Color;
import java.io.File;
import java.io.IOException; import java.io.IOException;
import java.lang.reflect.Method; import java.lang.reflect.Method;
@ -205,13 +204,8 @@ public class IrisChunkGenerator extends CeilingChunkGenerator implements IrisCon
CNG.creates = 0; CNG.creates = 0;
getData().dump(); getData().dump();
getCache().drop(); getCache().drop();
Iris.proj.updateWorkspace(getWorkspaceFile());
onHotload(); onHotload();
} Iris.proj.updateWorkspace(Iris.proj.getWorkspaceFile(getDimension().getLoadKey()));
private File getWorkspaceFile()
{
return new File(getDimension().getLoadFile().getParent(), getDimension().getLoadKey() + ".code-workspace");
} }
public long guessMemoryUsage() public long guessMemoryUsage()