Commit graph

226 commits

Author SHA1 Message Date
Riley Bruins
b83d4a16be chore: bump to v3.9.0 2025-07-24 08:33:17 -07:00
Riley Bruins
4216492f13
docs: add helpful doc comments (#217)
Some checks are pending
CI / Lint (push) Waiting to run
CI / Format (push) Waiting to run
CI / Test (push) Waiting to run
CI / Corpus test (push) Waiting to run
CI / Generate schema (push) Waiting to run
2025-07-24 00:30:13 +00:00
Riley Bruins
aeb5f9fbd5
feat(diagnostic): push related document diagnostics when necessary (#216)
Some checks are pending
CI / Lint (push) Waiting to run
CI / Format (push) Waiting to run
CI / Test (push) Waiting to run
CI / Corpus test (push) Waiting to run
CI / Generate schema (push) Waiting to run
2025-07-23 11:52:29 -07:00
Riley Bruins
3a4c8f6145
feat(diagnostic): send related document diagnostics (#215) 2025-07-23 11:42:48 -07:00
Riley Bruins
4345f2b604
test: factor out common test methods (#214)
Some checks are pending
CI / Lint (push) Waiting to run
CI / Format (push) Waiting to run
CI / Test (push) Waiting to run
CI / Corpus test (push) Waiting to run
CI / Generate schema (push) Waiting to run
2025-07-22 20:13:24 -07:00
Riley Bruins
214bc5b0d9
feat: add containerName in workspace symbols response (#213)
Some checks are pending
CI / Lint (push) Waiting to run
CI / Format (push) Waiting to run
CI / Test (push) Waiting to run
CI / Corpus test (push) Waiting to run
CI / Generate schema (push) Waiting to run
2025-07-22 18:09:05 +00:00
Will Lillis
e428ea9d09
fix(cli): remove conflicting -f short arg for check command (#212) 2025-07-22 08:29:35 -07:00
Riley Bruins
64f865f8d5
feat: constraints for predicate parameters (#211)
Some checks are pending
CI / Format (push) Waiting to run
CI / Test (push) Waiting to run
CI / Corpus test (push) Waiting to run
CI / Generate schema (push) Waiting to run
CI / Lint (push) Waiting to run
2025-07-22 01:25:39 +00:00
Riley Bruins
32b480c53e
test: more range formatting cases (#210) 2025-07-21 23:04:42 +00:00
Riley Bruins
c846a63aca
feat: range formatting support (#209) 2025-07-21 22:07:18 +00:00
Riley Bruins
c9b2c27bd5
fix: typo in end byte offset calculations (#208)
Some checks are pending
CI / Lint (push) Waiting to run
CI / Format (push) Waiting to run
CI / Test (push) Waiting to run
CI / Corpus test (push) Waiting to run
CI / Generate schema (push) Waiting to run
2025-07-21 05:29:46 +00:00
Riley Bruins
ba5c5907fc
refactor: more util refactoring to use traits (#207)
Some checks are pending
CI / Lint (push) Waiting to run
CI / Format (push) Waiting to run
CI / Test (push) Waiting to run
CI / Corpus test (push) Waiting to run
CI / Generate schema (push) Waiting to run
2025-07-20 09:11:23 -07:00
Riley Bruins
428b846eb8
refactor: simplify completion options logic (#206)
Some checks are pending
CI / Lint (push) Waiting to run
CI / Format (push) Waiting to run
CI / Test (push) Waiting to run
CI / Corpus test (push) Waiting to run
CI / Generate schema (push) Waiting to run
2025-07-19 19:25:03 -07:00
Riley Bruins
4a2e2e9a05
refactor: simplify byte conversion logic, use more traits (#205) 2025-07-19 18:45:28 -07:00
Riley Bruins
e0e7f7dbff
refactor: reduce parser allocations by keeping a static object (#204)
Some checks are pending
CI / Generate schema (push) Waiting to run
CI / Format (push) Waiting to run
CI / Test (push) Waiting to run
CI / Corpus test (push) Waiting to run
CI / Lint (push) Waiting to run
Also, remove some useless parser instantiations in some handlers that
don't need it.
2025-07-19 17:39:02 -07:00
Riley Bruins
6bdf90ac94
chore: bump to v3.8.0 (#203) 2025-07-19 11:01:58 -07:00
Riley Bruins
cbad04414f
fix: remove another problematic document reference (#202)
Some checks failed
CI / Lint (push) Has been cancelled
CI / Format (push) Has been cancelled
CI / Test (push) Has been cancelled
CI / Corpus test (push) Has been cancelled
CI / Generate schema (push) Has been cancelled
2025-07-17 14:46:54 -07:00
Riley Bruins
3f0dd1b22d
feat: support push diagnostics (#201)
Only sent if the client does not support pull diagnostics. This one's
for you, Helix ;)
2025-07-17 11:02:23 -07:00
Riley Bruins
d0de4fd5a3 chore: bump to v3.7.0
Some checks failed
CI / Test (push) Has been cancelled
CI / Lint (push) Has been cancelled
CI / Format (push) Has been cancelled
CI / Corpus test (push) Has been cancelled
CI / Generate schema (push) Has been cancelled
2025-07-15 09:32:30 -07:00
Riley Bruins
2118f5f8b6
fix(lib): add default language patterns in impl (#199)
Some checks are pending
CI / Lint (push) Waiting to run
CI / Format (push) Waiting to run
CI / Test (push) Waiting to run
CI / Corpus test (push) Waiting to run
CI / Generate schema (push) Waiting to run
2025-07-15 08:27:46 -07:00
Riley Bruins
b2222eb6f8
refactor: easier code action -> value conversion (#198)
Some checks are pending
CI / Lint (push) Waiting to run
CI / Format (push) Waiting to run
CI / Test (push) Waiting to run
CI / Corpus test (push) Waiting to run
CI / Generate schema (push) Waiting to run
2025-07-14 08:50:24 -07:00
Riley Bruins
e0758dfa00
feat(hover): module-level support (#197) 2025-07-14 08:30:25 -07:00
Riley Bruins
e073e5e7cf
test(diagnostic): typo fix (#196)
Some checks failed
CI / Corpus test (push) Has been cancelled
CI / Lint (push) Has been cancelled
CI / Format (push) Has been cancelled
CI / Test (push) Has been cancelled
CI / Generate schema (push) Has been cancelled
2025-07-11 15:16:09 +00:00
Riley Bruins
9741aa30be
test(diagnostic): coverage for supertype diagnostics (#195) 2025-07-11 07:39:55 -07:00
Riley Bruins
9cefb1e94b
test: coverage for workspace symbols (#194)
Some checks are pending
CI / Lint (push) Waiting to run
CI / Format (push) Waiting to run
CI / Test (push) Waiting to run
CI / Corpus test (push) Waiting to run
CI / Generate schema (push) Waiting to run
2025-07-11 01:38:44 +00:00
Riley Bruins
17f9a275b4
feat: specify supported ABI versions in config (#193)
This allows the server to provide diagnostics for unsupported parser ABI
versions.
2025-07-10 18:01:44 -07:00
Riley Bruins
1173f5c2d5
chore: bump to v3.6.0 (#192)
Some checks are pending
CI / Lint (push) Waiting to run
CI / Format (push) Waiting to run
CI / Test (push) Waiting to run
CI / Corpus test (push) Waiting to run
CI / Generate schema (push) Waiting to run
2025-07-10 08:38:21 -07:00
Riley Bruins
0c525b6fce refactor: expose missing language diagnostics in CLI
CLI already supported these errors, but now they are read from the main
diagnostic handler instead of being specially populated by the CLI
itself.
2025-07-10 07:34:22 -07:00
Riley Bruins
40eefb4ee5
test: use query language object in mock tests (#190)
Some checks are pending
CI / Lint (push) Waiting to run
CI / Format (push) Waiting to run
CI / Test (push) Waiting to run
CI / Corpus test (push) Waiting to run
CI / Generate schema (push) Waiting to run
This allows us to have true end-to-end coverage for language loading, at
least just for the `query` language. In the future other languages can
be added as dev dependencies.

This allows for another massive refactor of the test logic, removing
custom test helper hacks, unnecessary optionals used by mocks, and
removes lots of redundant code, replacing it with calls to the actual
server method handlers (which now have increased test coverage).
2025-07-09 23:44:21 -07:00
Riley Bruins
a23754314a
feat(diagnostic): include problematic module name in message (#189)
Some checks are pending
CI / Lint (push) Waiting to run
CI / Format (push) Waiting to run
CI / Test (push) Waiting to run
CI / Corpus test (push) Waiting to run
CI / Generate schema (push) Waiting to run
2025-07-10 01:52:30 +00:00
Riley Bruins
d79bf7f46a
test(diagnostic): coverage for language not found, module not found (#188) 2025-07-10 01:19:36 +00:00
Riley Bruins
ddee107f80
test: overhaul initialization logic (#187)
This is a large refactor that separates the document population logic
from the language population logic. This allows us to craft much more
granular tests, such as ones that check for diagnostics when no
languages are found. It also paves the way to using real language
objects in tests, to provide full end-to-end coverage. Additionally, it
allows tests to be fully workspace-aware, allowing coverage for
workspace methods (e.g. workspace symbols), and for diagnostics which
require importing files from the workspace.

It also removes the custom test document population logic with actual
calls to `textDocument/didOpen`, giving full coverage for that
notification.
2025-07-09 18:10:37 -07:00
Riley Bruins
10a094ecf2
feat: diagnostic for "language not found" (#185) 2025-07-09 16:08:06 +00:00
Riley Bruins
eea61b00fb
feat: log warning if WASM parser failed to load (#183)
Some checks failed
CI / Lint (push) Has been cancelled
CI / Format (push) Has been cancelled
CI / Test (push) Has been cancelled
CI / Corpus test (push) Has been cancelled
CI / Generate schema (push) Has been cancelled
2025-07-07 15:41:32 +00:00
Riley Bruins
2f5f902b77
chore: bump to v3.5.0 (#182) 2025-07-07 07:24:22 -07:00
Riley Bruins
2b4c44e0b7
feat(cli): clearer file name display in format (#181)
Removes superfluous text before printing file names which have improper
format. Also colors the file names purple so they are more easily
differentiated from the diff text.
2025-07-07 13:17:06 +00:00
Riley Bruins
4cc2ea6d4f feat(hover): ; format-ignore support
Some checks are pending
CI / Lint (push) Waiting to run
CI / Format (push) Waiting to run
CI / Test (push) Waiting to run
CI / Corpus test (push) Waiting to run
CI / Generate schema (push) Waiting to run
2025-07-06 17:33:27 -07:00
Riley Bruins
fe0f35f271
feat(hover): ; inherits: support (#179) 2025-07-07 00:07:32 +00:00
Riley Bruins
87e8967cee
feat(completion): snippet for ; inherits: (#178) 2025-07-06 16:42:22 -07:00
Riley Bruins
e14f4e4a91
refactor(cli): consolidate path string variables in formatter (#177)
Also print the path as a relative string for brevity
2025-07-06 22:45:38 +00:00
Will Lillis
4f7a0c4314 fix(test): update format coverage to reflect cli format changes 2025-07-06 14:59:38 -07:00
Will Lillis
17126be83d fix(cli): display and indicate error when file cannot be formatted due
to syntax error
2025-07-06 14:59:38 -07:00
Will Lillis
5df3222ea3 feat(cli): print diff when using format --check 2025-07-06 14:59:38 -07:00
Riley Bruins
89f990c850
refactor: simplify document change logic (#175)
Some checks are pending
CI / Lint (push) Waiting to run
CI / Format (push) Waiting to run
CI / Test (push) Waiting to run
CI / Corpus test (push) Waiting to run
CI / Generate schema (push) Waiting to run
2025-07-06 18:50:14 +00:00
Riley Bruins
2ddb75d87d
fix: wrong type for workspace URIs when finding symbols (#173) 2025-07-06 10:53:04 -07:00
Riley Bruins
8aa64ee517
feat: workspace symbols support (#160)
Unfortunately, tower-lsp only supports the deprecated
`workspace/symbols` signature right now.
2025-07-06 10:25:46 -07:00
Riley Bruins
4d49674f3e
feat(completion): support for inherits: and module names (#172) 2025-07-06 06:02:33 -07:00
Riley Bruins
04dc2ffb87
feat: semantic tokens for inherits:, format-ignore (#171)
Some checks are pending
CI / Lint (push) Waiting to run
CI / Format (push) Waiting to run
CI / Test (push) Waiting to run
CI / Corpus test (push) Waiting to run
CI / Generate schema (push) Waiting to run
2025-07-05 16:59:22 -07:00
Christian Clason
1ef27e6421 chore: bump to v3.4.1
Some checks are pending
CI / Lint (push) Waiting to run
CI / Format (push) Waiting to run
CI / Test (push) Waiting to run
CI / Corpus test (push) Waiting to run
CI / Generate schema (push) Waiting to run
2025-07-05 08:37:30 -07:00
Riley Bruins
2086d4e8ca
chore: bump to v3.4.0 (#167)
Some checks are pending
CI / Lint (push) Waiting to run
CI / Format (push) Waiting to run
CI / Test (push) Waiting to run
CI / Corpus test (push) Waiting to run
CI / Generate schema (push) Waiting to run
2025-07-04 19:42:36 -07:00