From a5422d4f8c43962147696e3b6b22d586133b9a4f Mon Sep 17 00:00:00 2001 From: Yong He Date: Mon, 13 Jun 2022 16:50:35 -0700 Subject: Follow up on Language Server Improvement (#2275) * Fix typo and improve parser recovery. * Add search path configuration. Co-authored-by: Yong He --- source/compiler-core/slang-diagnostic-sink.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/compiler-core') diff --git a/source/compiler-core/slang-diagnostic-sink.cpp b/source/compiler-core/slang-diagnostic-sink.cpp index c934157d2..0110b16d7 100644 --- a/source/compiler-core/slang-diagnostic-sink.cpp +++ b/source/compiler-core/slang-diagnostic-sink.cpp @@ -570,7 +570,7 @@ void DiagnosticSink::diagnoseImpl(DiagnosticInfo const& info, const UnownedStrin m_parentSink->diagnoseImpl(info, formattedMessage); } - if (getEffectiveMessageSeverity(info) >= Severity::Fatal) + if (info.severity >= Severity::Fatal) { // TODO: figure out a better policy for aborting compilation SLANG_ABORT_COMPILATION(""); -- cgit v1.2.3