-
-
Notifications
You must be signed in to change notification settings - Fork 391
Description
How are you using the lua-language-server?
Visual Studio Code Extension (sumneko.lua)
Which OS are you using?
Windows
What is the issue affecting?
Annotations, Type Checking, Completion, Diagnostics/Syntax Checking, Hover, Libraries
Expected Behaviour
When the content of a file within a directory which is a symbolic link changes, the language server should reflect the changes in, e.g., the code completion, hover, or diagnostics.
Actual Behaviour
The changes are not reflected, i.e., the code completion, hover information, or diagnostics as examples are not updated.
Reproduction steps
-
Open a workspace which contains a directory which is a symbolic link.
Example:The following content of
common.luais loaded:---@param p1 string local function t1(p1) end ---@param p2 string local function t2(p2) end return t1;
-
Change the content of
common.luawith an external program without openingcommon.luain VSCode, e.g., change the return toreturn t2;. FortinA.lua,t1is still shown. -
Open
common.luain VSCode. Now, inA.lua,t2is shown fort.

Alternative:
- Open the workspace with the symbolic linked directory and the target directory as a second workspace.
Example:

- Open
common.luain the actual directory, and change something, e.g. the return toreturn t2;. tinA.luastill shows the information aboutt1. Ifcommon.luain the symbolic linked directory is opened,tshowst2on hover.
Additional Notes
I am not sure if this behavior is intended or a bug. So, feel free to close this issue if the behavior is intended.
Log File
No response
