Updates to new execution method of Upsilon
This commit is contained in:
parent
6aeb95c289
commit
a3043004da
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)
|
||||
|
|
Loading…
Reference in New Issue