Skip to content

Give raw .hs files a language server - #121

Merged
thomasjm merged 1 commit into
mainfrom
hls-raw-extensions
Oct 13, 2026
Merged

thomasjm merged 1 commit into
mainfrom
hls-raw-extensions

Conversation

@thomasjm

@thomasjm thomasjm commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

extensions = if raw then ["hs"] else [] meant that with the default raw = false the HLS config claimed no file extensions, so a plain .hs file in a sandbox reached no language server while notebooks worked. rust-analyzer keeps extensions = ["rs" "rlib"] in both modes and varies only notebook_suffix; HLS now does the same.

Confirmed against the generated config in a built environment: extensions goes from [] to ["hs"], with notebook_suffix still "" in non-raw mode.

The test doesn't cover that change — the suite launches a named language server directly, so it passes either way. What it does cover is that a bare .hs survives hnls, which passes non-notebook uris through untouched, and gets real hover from HLS.

Closes part 3 of #120.

@thomasjm
thomasjm merged commit f0c6a10 into main Oct 13, 2026
63 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant