diff --git a/UpsilonLanguageServer/UpsilonLanguageServer/BoundTypeParser.cs b/UpsilonLanguageServer/UpsilonLanguageServer/BoundTypeParser.cs index fc1b739..a3ac5ad 100644 --- a/UpsilonLanguageServer/UpsilonLanguageServer/BoundTypeParser.cs +++ b/UpsilonLanguageServer/UpsilonLanguageServer/BoundTypeParser.cs @@ -85,6 +85,9 @@ namespace UpsilonLanguageServer public static void LoadStaticVariables(string fileContent) { + // We call the evaluation scope so that it initializes, and won't overwrite the bound scope later on + // DONT REMOVE + var _ = StaticScope.Scope; StaticScope.BoundScope = StaticScope.CreateStandardLibrary().Item2; var json = JObject.Parse(fileContent); foreach (var property in json.Properties()) diff --git a/UpsilonLanguageServer/UpsilonLanguageServer/DiagnosticsProvider.cs b/UpsilonLanguageServer/UpsilonLanguageServer/DiagnosticsProvider.cs index 5496d60..dfe004c 100644 --- a/UpsilonLanguageServer/UpsilonLanguageServer/DiagnosticsProvider.cs +++ b/UpsilonLanguageServer/UpsilonLanguageServer/DiagnosticsProvider.cs @@ -40,7 +40,6 @@ namespace UpsilonLanguageServer { ThrowExceptionOnError = false, SaveDataComments = true, - }; private static async Task RealLint(TextDocument document, int maxNumberOfProblems, SessionDocument session,