Crate styx_lsp_test_schema

Crate styx_lsp_test_schema 

Source
Expand description

§styx-lsp-test-schema

crates.io documentation MIT/Apache-2.0 licensed

Schema types for Styx LSP extension test files. Internal crate used for testing the language server.

§Sponsors

Thanks to all individual sponsors:

GitHub Sponsors Patreon

…along with corporate sponsors:

AWS Zed Depot

…without whom this work could not exist.

§License

Licensed under either of:

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§

CompletionExpectations
Expectations for completion results.
CompletionItemExpectation
Detailed expectation for a single completion item.
DefinitionExpectation
Expectation for a single definition location.
DefinitionExpectations
Expectations for definition results.
DiagnosticExpectation
Expectation for a single diagnostic.
DiagnosticExpectations
Expectations for diagnostics.
HoverExpectations
Expectations for hover results.
InlayHintExpectation
Expectation for a single inlay hint.
InlayHintExpectations
Expectations for inlay hints.
TestCase
A single test case.
TestFile
A test file containing one or more test cases.