Updates to new execution method of Upsilon

This commit is contained in:
Deukhoofd committed 2018-11-26 17:27:51 +01:00
1 parent 6aeb95c289
commit a3043004da
3 files changed
+6 -1

No files matched your search

Binary file not shown.
Binary file not shown.
@@ -36,12 +36,17 @@ namespace UpsilonLanguageServer
return diag;
}
private static readonly ScriptOptions Options = new ScriptOptions()
{
ThrowExceptionOnError = false
};
private static async Task RealLint(TextDocument document, int maxNumberOfProblems, SessionDocument session,
string content, List<Diagnostic> diag)
{
try
{
using (var script = new Script(content))
using (var script = Executor.ParseInput(content, Options))
{
session.SourceText = script.ScriptString;
if (script.Diagnostics.Messages.Count > 0)