apple / pkl-lsp

Apache License 2.0
24 stars 6 forks source link

Remove builder interface #14

Closed bioball closed 1 month ago

bioball commented 1 month ago

The goal of this PR is to separte the concerns of building a file from analysis and publishing diagnostics.

Each VirtualFile now returns the underlying PklModule as a completable future, which gets invalidated if its contents change.

Miscellaneous: change various events to follow ADT pattern (use sealed interface)