Skip to content

Commit 60c7bbc

Browse files
yglukhovAraq
authored andcommitted
Jump to definition on import will open the imported module (#7155)
1 parent 8d8df58 commit 60c7bbc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/importer.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
import
1313
intsets, strutils, os, ast, astalgo, msgs, options, idents, rodread, lookups,
14-
semdata, passes, renderer, modulepaths
14+
semdata, passes, renderer, modulepaths, sigmatch
1515

1616
proc evalImport*(c: PContext, n: PNode): PNode
1717
proc evalFrom*(c: PContext, n: PNode): PNode
@@ -149,7 +149,7 @@ proc myImportModule(c: PContext, n: PNode): PSym =
149149
localError(n.info, errGenerated, "A module cannot import itself")
150150
if sfDeprecated in result.flags:
151151
message(n.info, warnDeprecated, result.name.s)
152-
#suggestSym(n.info, result, false)
152+
suggestSym(n.info, result, c.graph.usageSym, false)
153153

154154
proc impMod(c: PContext; it: PNode) =
155155
let m = myImportModule(c, it)

0 commit comments

Comments
 (0)