Closed andys8 closed 4 years ago
I think this might be the issue: https://github.com/nwolverson/purescript-language-server/blob/0fd2cdb17cea2c76efd13b2ea76482465bde2cce/src/LanguageServer/IdePurescript/Main.purs#L194-L197
state
is read as s
updateModules
is triggered to update list of active modules and modify the state ref
s
from before is passed to function handler, but modules were not updatedAn issue has been observed on switching files similarly, goto definition does not work before triggering an update by editing/saving the file
Opening a new file and trigger jump to definition fails for the first request (returns no result), but works with the second request. This could also apply to other features than jump to definition.
See https://github.com/nwolverson/purescript-language-server/issues/88#issuecomment-687895790