Closed
Description
The completion server has a syntax cache for things like toplevel completion. It is initialized once on startup with server/readClassPaths
. The problem is that after this point, it is never updated again.
Here's an example with a newly created Test
type, which doesn't show up in completion and thus can't be auto-imported. It only shows up after restarting the language server.
Conversely, Test
will still show up after it has been deleted:
To avoid these issues, Haxe needs to update its syntax cache dynamically when types are added or removed. We probably also need some new methods (server/moduleCreated
/ server/moduleDeleted
?) to inform Haxe about changes based on file watcher events (similar to the server/invalidate
we already have).
Activity