Repository navigation
loxl: per-port descriptions in loxl types and the LSP - #304
Merged
Merged
Conversation
Port keys are raw XML keys (Lr, Lbr, Au, AQh). src/port_doc.rs gives each port a line written from its block's Loxone knowledge-base page, with the page abbreviation it maps to. A key maps only by evidence: the canvas label, the TechDoc label, a key that spells the abbreviation, or the mapping the simulator already models. Undocumented ports get no line. loxl types prints the line under each port and --json gives it as `description`; the language server shows it in the port hover and the completion detail. tools/check-port-docs.py checks every abbreviation against the pages. 554 of 696 ports in 40 of 48 types. Closes #301 Claude-Session: https://claude.ai/code/session_01Ms544bon1xvxMStUjX3BKG
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #304 +/- ##
==========================================
+ Coverage 74.20% 74.65% +0.44%
==========================================
Files 134 135 +1
Lines 44331 44746 +415
==========================================
+ Hits 32898 33403 +505
+ Misses 11433 11343 -90
🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #301
Port keys are raw XML keys (
Lr,Lbr,Au,AQh). Each builtin port now has a line from its block's Loxone knowledge-base page (referencekb-block-pages, one page per type inblockdoc::kb_page). The line shows in:loxl types <Type>: under the portloxl types --json: asdescriptionNo aliases.
src/port_doc.rs(hand-written): for each port, the key, its abbreviation on the page, and one line in our own words. Other ports are named by their keys.Reset→Offmapping the simulator already uses. A port with none of these gets no line.tools/check-port-docs.pydownloads the pages intorefs/kb/and checks every abbreviation. A unit test checks the abbreviations against the known canvas labels.kb_pagenow covers every type with descriptions. Equal, NotEqual, GreaterEqual and LessEqual now link their own pages instead ofcomparator, which documents a different block.Compile output is unchanged: the compiler is not touched.
https://claude.ai/code/session_01Ms544bon1xvxMStUjX3BKG