Skip to content

Commit bf9b75f

Browse files
committed
follow upstream changes
1 parent 7dfb591 commit bf9b75f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

nimlsp/nimlsppkg/nimsuggest.nim

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,7 @@ proc initNimSuggest*(project: string, nimPath: string = ""): NimSuggest =
8888
conf.projectName = a
8989
proc reportHook(conf: ConfigRef, report: Report): TErrorHandling =
9090
result = doNothing
91-
if report.kind notin {rsemProcessing, rsemProcessingStmt} and
92-
conf.isEnabled(report.kind):
91+
if report.kind notin {rsemProcessing, rsemProcessingStmt}:
9392
# pre-filter to save memory
9493
if containsOrIncl(reported, hash(report)): return
9594
cachedMsgs.add(report)
@@ -191,8 +190,7 @@ proc runCmd*(nimsuggest: NimSuggest, cmd: IdeCmd, file,
191190
report.kind in {rsemProcessing, rsemProcessingStmt}:
192191
# skip processing statements
193192
return
194-
if conf.isEnabled(report.kind):
195-
addReport(report)
193+
addReport(report)
196194
else: discard
197195

198196
else:

0 commit comments

Comments
 (0)