tobogganSe connecter

louise

The Louise language: compiler, runtime, std, tooling

Clone avec HTTPS, un jeton personnel en mot de passe, ou avec SSH, une clé ajoutée dans vos paramètres.

LSP: reloads packages changed on disk, reports `@fip`, analyses bursts once (issue #223, part 2)

- **Reloading.** On `workspace/didChangeWatchedFiles` for a file the
  editor doesn't have open (a manifest, a lockfile, a module created,
  deleted or edited elsewhere), the server loads every package again,
  then puts the open buffers back over it (`Server::buffers`). A fresh
  `Db` is simpler than unloading: the source database only grows, and
  std is parsed once per process. An open buffer's own saves reload
  nothing. The VS Code extension watches `**/{louise.toml,louise.lock,*.lse}`;
  the crate doc says what another client must send. (code-health N5)
- **`@fip` in the editor.** The check moved from the driver to
  `louise_db::fip_diagnostics` (and `fip_diagnostics_of` for Core already
  lowered); `louise check`, the compiling commands and the language
  server all use it, so E0901 reaches the editor. It costs a lowering and
  Perceus only when a function is marked `@fip`, and runs once the rest
  is clean. `louise_db` now depends on `louise_core` and `louise_perceus`
  (no cycle). The driver's fallback that printed a span-less violation
  is gone: only generated code lacks a span, and it is never `@fip`.
- **Bursts.** Notifications queued while an analysis ran (fast typing)
  are applied together and analysed once.

Tests: `a_module_changed_on_disk_reloads_the_package` and
`fip_errors_are_published` (over the protocol); the CLI's `@fip` test is
unchanged and passes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

olivier · il y a 1 mois · 3e8d2256aeb3fda3738ada73201570f20150f719

Parents 7385d15

10 fichiers modifiés, 307 ajouts, 57 suppressions