Repository navigation
Releases
nightly-f8d8ea8
Rolling build of main at f8d8ea8.
Not a stable release: rebuilt on every push to main. Select the
nightly channel in your editor extension to use it.
swls v0.6.2
🚀 New release of LSP! Includes native binaries for Linux, macOS and Windows.
swls v0.6.1
Chore
- drop the redundant homepage from the manifests
Cargo 1.100 warns thatpackage.homepageequal topackage.repositoryis
redundant, once per crate. components-rs keeps its own, different homepage.
New Features
-
document links, outline, folding ranges, workspace symbols (4/4)
-
workspace index, watched files, saved edits, settings changes (3/4)
-
skip git-ignored files in the workspace index
The workspace walk now uses theignorecrate (ripgrep's), so it skips
what git would ignore:.gitignorefiles at every level,
.git/info/exclude, the global git excludes and.ignorefiles, also
outside a git repository. Hidden entries,node_modulesandtargetstay
skipped regardless.Files created after startup follow the same rule: before indexing a new
file,FsTrait::is_ignoredchecks the ignore files between the workspace
folder and the file (util::fs::is_ignored; the global git excludes only
apply to the startup walk). -
document links, outline, folding ranges and workspace symbols
Read-only views of what the server already parsed (core::navigation):textDocument/documentLink: eachowl:importsIRI links to the imported
document, each@prefixIRI to the ontology loaded for it (the cached
file, a configured ontology, or the namespace itself).textDocument/documentSymbol: one symbol per subject block, with its
types as detail and its predicates as children. The kind follows the
types: shapes, classes, properties, ontologies, other resources.textDocument/foldingRange: multi-line subject blocks, multi-line
[ … ]blank nodes, and the run of prefix declarations (as imports).workspace/symbol: subjects across every known document (open,
imported, cached, workspace), matched case-insensitively, at most 256.
Each can be disabled (
document_link,document_symbol,folding_range,
workspace_symbol). Anonymous blank nodes get no symbol of their own.Tests over stdio for each.
-
workspace index, watched files, saved edits and settings changes
Workspace index (core::workspace)- At startup, the RDF files of the workspace folders (
.ttl,.nt,
.owl,.trig,.n3) are loaded as background documents, so their
classes, properties and shapes are known without opening them. Hidden
folders,node_modulesandtargetare skipped; at most 500 files of
at most 5 MB per folder; RDF/XML and HTML are skipped. Clients that send
only arootUriget it as their workspace. Disable with
"disabled": ["workspace_index"].FsTrait::walkprovides the bounded
walk (nothing for file systems without one).
Files changed on disk (
workspace/didChangeWatchedFiles)- The server registers a watcher for RDF files when the client supports
dynamic registration. - A changed background document is reloaded from disk, a deleted one is
dropped (its triples and shapes too), and a new RDF file in the
workspace is indexed. A file open in the editor keeps the editor's text.
Saved edits (
textDocument/didSave)- Saving one of the user's own background documents (not a cache file)
loads its triples into the shared store, so other documents see the
saved classes and properties; closing it restores the saved version.
Unsaved edits still never reach the store.
Settings changes (
workspace/didChangeConfiguration)- The settings (either the settings object or
{ "swls": … }) are applied
likeinitializationOptions, combined with the config files. Newly
configured ontologies and shapes are loaded (the newConfigChanged
schedule; loading is idempotent), and open documents are re-checked.
Invalid settings are reported and the current ones kept.
Tests over stdio: workspace files are indexed (skipping
node_modules
and hidden folders), watchers are registered, changed / deleted / created
files update completions, a saved workspace file makes its changes known,
and a settings change applies without a restart. - At startup, the RDF files of the workspace folders (
Bug Fixes
- exit on an internal error instead of hanging
A panic inside a system ended the task that owns the world, and Bevy only
re-inserts a schedule after it finishes, so the server kept accepting
requests that were never answered. The world loop now catches the panic,
reports it on stderr and exits, so the editor restarts the server and shows
the error in its log. Panics in background fetch tasks are unaffected.
Other
- fewer completions, single parse, one diagnostics message per pass, shape cache (2/4)
- fetch timeouts, no panics on I/O, stdio integration tests (1/4)
Performance
- send each document's diagnostics once per pass
The publisher sends a document's full, merged diagnostics on every publish,
once per reason (syntax, prefixes, namespaces, shapes), so one edit sent 8
publishDiagnosticsmessages for the document. The server now lets a pass
finish (10 ms), drains what is queued and sends each document's latest set
once (diagnostics::coalesce).
Test
-
required shape properties are suggested first over stdio
A regression test for a reported setup: a mapping that imports its shapes
with a relativeowl:imports <./shape.ttl>, afoaf:Personthat already
hasfoaf:name, and completion on the empty line after it. The missing
requiredfoaf:name22must be the first suggestion, followed by the
template that adds it, andfoaf:namemust not be promoted. Checked as
Turtle and TriG, and at the end of an unfinished file.The test fails against the server from before "suggest predicates that
shapes require first" (the first suggestion is thefoafprefix) and
passes now.
Commit Statistics
- 12 commits contributed to the release.
- 11 commits were understood as conventional.
- 0 issues like '(#ID)' were seen in commit messages
Commit Details
view details
- Uncategorized
- Document links, outline, folding ranges, workspace symbols (4/4) (3a2b949)
- Workspace index, watched files, saved edits, settings changes (3/4) (d72ae65)
- Merge branch 'claude/correctness' into claude/cheap-features (0172a18)
- Skip git-ignored files in the workspace index (ba311f4)
- Fewer completions, single parse, one diagnostics message per pass, shape cache (2/4) (d0ad037)
- Fetch timeouts, no panics on I/O, stdio integration tests (1/4) (63fddf1)
- Document links, outline, folding ranges and workspace symbols (16d398e)
- Workspace index, watched files, saved edits and settings changes (78ae1d8)
- Send each document's diagnostics once per pass (0ae7ce3)
- Drop the redundant homepage from the manifests (3abc6c0)
- Exit on an internal error instead of hanging (571a91f)
- Required shape properties are suggested first over stdio (4f6349d)
swls-lov v0.1.5
Chore
- drop the redundant homepage from the manifests
Cargo 1.100 warns thatpackage.homepageequal topackage.repositoryis
redundant, once per crate. components-rs keeps its own, different homepage.
Other
- fetch timeouts, no panics on I/O, stdio integration tests (1/4)
Commit Statistics
- 2 commits contributed to the release.
- 2 commits were understood as conventional.
- 0 issues like '(#ID)' were seen in commit messages
Commit Details
swls-lang-turtle v0.2.5
Bug Fixes
-
complete the term being typed inside blank nodes and collections
A term ending at the cursor lost to any wider term containing it, so
typingsh:inside[ … ]resolved to the enclosing blank node in
subject position and offered no properties. Now the narrowest term wins
unless another term starts exactly at the cursor, and on equal spans a
written term beats a collection's list node.Adds regression tests for completion in nested, unclosed and subject
blank nodes, collections and adjacent terms.
Commit Statistics
- 3 commits contributed to the release.
- 1 commit was understood as conventional.
- 0 issues like '(#ID)' were seen in commit messages
Commit Details
view details
- Uncategorized
swls-lang-turtle v0.2.4
Chore
- drop the redundant homepage from the manifests
Cargo 1.100 warns thatpackage.homepageequal topackage.repositoryis
redundant, once per crate. components-rs keeps its own, different homepage.
New Features
-
workspace index, watched files, saved edits, settings changes (3/4)
-
workspace index, watched files, saved edits and settings changes
Workspace index (core::workspace)- At startup, the RDF files of the workspace folders (
.ttl,.nt,
.owl,.trig,.n3) are loaded as background documents, so their
classes, properties and shapes are known without opening them. Hidden
folders,node_modulesandtargetare skipped; at most 500 files of
at most 5 MB per folder; RDF/XML and HTML are skipped. Clients that send
only arootUriget it as their workspace. Disable with
"disabled": ["workspace_index"].FsTrait::walkprovides the bounded
walk (nothing for file systems without one).
Files changed on disk (
workspace/didChangeWatchedFiles)- The server registers a watcher for RDF files when the client supports
dynamic registration. - A changed background document is reloaded from disk, a deleted one is
dropped (its triples and shapes too), and a new RDF file in the
workspace is indexed. A file open in the editor keeps the editor's text.
Saved edits (
textDocument/didSave)- Saving one of the user's own background documents (not a cache file)
loads its triples into the shared store, so other documents see the
saved classes and properties; closing it restores the saved version.
Unsaved edits still never reach the store.
Settings changes (
workspace/didChangeConfiguration)- The settings (either the settings object or
{ "swls": … }) are applied
likeinitializationOptions, combined with the config files. Newly
configured ontologies and shapes are loaded (the newConfigChanged
schedule; loading is idempotent), and open documents are re-checked.
Invalid settings are reported and the current ones kept.
Tests over stdio: workspace files are indexed (skipping
node_modules
and hidden folders), watchers are registered, changed / deleted / created
files update completions, a saved workspace file makes its changes known,
and a settings change applies without a restart. - At startup, the RDF files of the workspace folders (
Other
- fetch timeouts, no panics on I/O, stdio integration tests (1/4)
Commit Statistics
- 4 commits contributed to the release.
- 4 commits were understood as conventional.
- 0 issues like '(#ID)' were seen in commit messages
Commit Details
view details
swls-lang-trig v0.2.4
Chore
- drop the redundant homepage from the manifests
Cargo 1.100 warns thatpackage.homepageequal topackage.repositoryis
redundant, once per crate. components-rs keeps its own, different homepage.
Other
- fetch timeouts, no panics on I/O, stdio integration tests (1/4)
Commit Statistics
- 2 commits contributed to the release.
- 2 commits were understood as conventional.
- 0 issues like '(#ID)' were seen in commit messages
Commit Details
swls-lang-sparql v0.2.4
Chore
- drop the redundant homepage from the manifests
Cargo 1.100 warns thatpackage.homepageequal topackage.repositoryis
redundant, once per crate. components-rs keeps its own, different homepage.
Other
- fetch timeouts, no panics on I/O, stdio integration tests (1/4)
Commit Statistics
- 2 commits contributed to the release.
- 2 commits were understood as conventional.
- 0 issues like '(#ID)' were seen in commit messages
Commit Details
swls-lang-rdf-base v0.2.4
Chore
- drop the redundant homepage from the manifests
Cargo 1.100 warns thatpackage.homepageequal topackage.repositoryis
redundant, once per crate. components-rs keeps its own, different homepage.
Other
- fetch timeouts, no panics on I/O, stdio integration tests (1/4)
Commit Statistics
- 2 commits contributed to the release.
- 2 commits were understood as conventional.
- 0 issues like '(#ID)' were seen in commit messages
Commit Details
swls-lang-n3 v0.1.4
Chore
- drop the redundant homepage from the manifests
Cargo 1.100 warns thatpackage.homepageequal topackage.repositoryis
redundant, once per crate. components-rs keeps its own, different homepage.
Other
- fetch timeouts, no panics on I/O, stdio integration tests (1/4)
Commit Statistics
- 2 commits contributed to the release.
- 2 commits were understood as conventional.
- 0 issues like '(#ID)' were seen in commit messages