haskell / haskell-ide-engine

The engine for haskell ide-integration. Not an IDE
BSD 3-Clause "New" or "Revised" License
2.38k stars 211 forks source link

Go to definition on a project import should open that file #688

Closed alanz closed 6 years ago

alanz commented 6 years ago

If the cursor is on the module name in an import, e.g.

import           Haskell.Ide.Engine.LSP.CodeActions
                             ^ (cursor pos)

then the go to definition function should open the file. Perhaps?

MaskRay commented 6 years ago

ccls/clangd/cquery have such textDocument/definition behavior. BTW, there is also textDocument/documentLink but I don't find it very useful.