Skip to content

[display] dynamically update the syntax cache #8451

Closed
@Gama11

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions