Include buffer, marker and placement in event DocumentSymbol detail #77
No reviewers
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
state: Done
state: New
type: Bug
type: Feature
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Christoph/nx_post_support!77
Loading…
Reference in a new issue
No description provided.
Delete branch "73-buffer-information-in-outline-view"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This change updates the document symbol builder so Event symbols include the buffer, marker and any placement information in the
detailfield rather than only the tag. Parsing regexes were extended to capture optional buffer/marker on the event start line and placement text on the close/name line; the composeddetailshows those values formatted and abbreviated when appropriate.Key changes
EVENT_START_REnow optionally captures two tokens after the edit tag;pending_eventstoresbufferandmarkerfrom those groups.EVENT_CLOSE_INLINE_REandEVENT_NAME_LINE_REnow capture trailing placement text so insert events can include placement likebefore @OUTPUT/after @DECOMPOSEZUL.build_document_symbolscomposesdetailasEvent ({edit_type})plus a target made frombufferandmarkerseparated by›when present. Ifmarkerrepeats thebufferprefix, the marker is abbreviated with a leading ellipsis (…) to keep the detail concise. If a placement was parsed, it is appended using· {placement}.nameis unchanged (still the tag); buffer/marker/placement are moved intodetailfor outline clarity.Tests
Two tests were added to assert the new detail formatting:
test_event_detail_includes_buffer_and_markerverifies the buffer and abbreviated marker appear in the detail.test_insert_event_detail_includes_placementverifies placement is appended forinsertedits.No test execution results were provided.
Recommended checks for reviewers:
pytest -k document_symbolsand inspect the produceddetailstrings.build_document_symbolswith the example sources) to confirm formatting and that other symbol kinds are unaffected.Notes / risk
nameor symbol kinds.Files changed (summary):
server/src/tools/document_symbols.py(parsing and detail composition) andserver/tests/python_tests/test_document_symbols.py(added tests).Closes #73