Don't mark local X = require()
as a definition when doing Go To Definition
#878
Labels
enhancement
New feature or request
In an example like:
If you perform go to definition on
useFunction
in the last line, it will give 2 results: the actual function definition fromuseFunction.luau
, but also the linelocal useFunction = require(...)
.The latter result is not helpful, and makes the go to definition a longer process than necessary (VSCode will pop up a lens displaying the 2 definitions, then you have to click through to the right one).
We should make go to definition only return the underlying definition. The
local useFunction = require(...)
should only show up when we want to find all references.The text was updated successfully, but these errors were encountered: