diff --git a/src/dev/flang/ast/Call.java b/src/dev/flang/ast/Call.java index ccc162c7d6..901e124594 100644 --- a/src/dev/flang/ast/Call.java +++ b/src/dev/flang/ast/Call.java @@ -2217,7 +2217,7 @@ public Call resolveTypes(Resolution res, AbstractFeature outer) if (POSTCONDITIONS) ensure (Errors.count() > 0 || result.typeIfKnown() != Types.t_ERROR); - return result.typeIfKnown() == Types.t_ERROR + return result.typeIfKnown() == Types.t_ERROR && !res._options.isLanguageServer() ? Call.ERROR // short circuit this call : result; } diff --git a/src/dev/flang/util/FuzionOptions.java b/src/dev/flang/util/FuzionOptions.java index 49bd4e6314..bf2166739a 100644 --- a/src/dev/flang/util/FuzionOptions.java +++ b/src/dev/flang/util/FuzionOptions.java @@ -193,6 +193,11 @@ public Path fuzionHome() return _fuzionHome; } + public boolean isLanguageServer() + { + return false; + } + }