Expand description
§styx-lsp-test-schema
Schema types for Styx LSP extension test files. Internal crate used for testing the language server.
§Sponsors
Thanks to all individual sponsors:
…along with corporate sponsors:
…without whom this work could not exist.
§License
Licensed under either of:
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option. Schema types for LSP extension test files.
These types define the structure of .styx test files that exercise
LSP extensions through real IPC (roam over stdio).
§Example Test File
tests [
@test {
name "column completions are context-aware"
input <<STYX
@schema {id crate:dibs-queries@1}
AllProducts @query {
from product
select {h|}
}
STYX
completions {
has (handle id status)
not_has (locale currency)
}
}
]Structs§
- Completion
Expectations - Expectations for completion results.
- Completion
Item Expectation - Detailed expectation for a single completion item.
- Definition
Expectation - Expectation for a single definition location.
- Definition
Expectations - Expectations for definition results.
- Diagnostic
Expectation - Expectation for a single diagnostic.
- Diagnostic
Expectations - Expectations for diagnostics.
- Hover
Expectations - Expectations for hover results.
- Inlay
Hint Expectation - Expectation for a single inlay hint.
- Inlay
Hint Expectations - Expectations for inlay hints.
- Test
Case - A single test case.
- Test
File - A test file containing one or more test cases.