Skip to content

Commit 6235d8f

Browse files
committed
report no symbol at position
1 parent bf9b75f commit 6235d8f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

nimlsp/nimlsppkg/nimsuggest.nim

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ import
3232
passaux,
3333
]
3434

35+
from compiler/ast/reports_sem import reportSem
36+
from compiler/ast/report_enums import ReportCategory,
37+
ReportKind
38+
3539
from compiler/ast/reports import Report,
3640
category,
3741
kind,
@@ -138,7 +142,7 @@ proc executeNoHooks(cmd: IdeCmd, file, dirtyfile: AbsoluteFile, line, col: int,
138142
if u != nil:
139143
listUsages(graph, u)
140144
else:
141-
stderr.writeLine "found no symbol at position: " & (conf $ conf.m.trackPos)
145+
localReport(conf, conf.m.trackPos, reportSem(rsemSugNoSymbolAtPosition))
142146

143147
proc reportToSuggest(conf: ConfigRef, info: TLineInfo, r: Report): Suggest =
144148
Suggest(section: ideChk, filePath: toFullPath(conf, info),

0 commit comments

Comments
 (0)