Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

LSP: trace navigation through hierarchy requests, document links and document symbols

オープン
#385 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
javascript

調査の方向性

Start with the syscribe lsp entry point and ADR-SYS-LSP-001, then inspect the existing references and code lens implementations and their tests. Add coverage for hierarchy requests, document links, symbols, folding ranges, and workspace symbols based on the acceptance criteria. Done means the specified trace relationships, prose links, and ordered TestCase scenario outline are returned; selection ranges and semantic tokens remain out of scope.

索引モデルが issue の本文から書いたものです。

説明

Part of #380.

Current state

References and code lens counts exist (N verifiedBy · N derivedChildren), but the user cannot walk the trace. Ids written in the Markdown body (see REQ-X-004) are plain text. The outline is empty.

Proposal

  1. Hierarchy requests as the trace. Implement textDocument/prepareTypeHierarchy + typeHierarchy/supertypes/subtypes for requirements, mapping parents to derivedFrom: and children to the derived children; callHierarchy incoming/outgoing for satisfies/verifies (satisfier and verifier of a requirement; the requirements a test covers). Standard requests, so an editor's built-in hierarchy view becomes a requirements trace without custom UI.
  2. Document links (textDocument/documentLink): every resolvable stable id or qualified name in the body and in free-text fields becomes a link; unresolved ones are not linked.
  3. Document symbols (textDocument/documentSymbol) for the outline: the element with its main fields, and for a TestCase each Gherkin scenario; for a StateDef its states. Folding ranges for the frontmatter and fenced blocks.
  4. Workspace symbols gain containerName (package) and a kind per element type, so search groups sensibly.
  5. Selection range / semantic tokens are not in scope.

Acceptance (tests first)

  • The type hierarchy of a leaf requirement returns its parent chain; subtypes returns its derived children.
  • The call hierarchy of a requirement lists its satisfiers and verifying tests; of a test, the requirements it verifies.
  • documentLink returns a link for an id in prose and none for an unknown token.
  • The outline of a TestCase lists its scenarios in order.

Part of #272. Scope: syscribe lsp only (standard LSP, ADR-SYS-LSP-001).


Generated by Claude Code

主要言語
JavaScript
スター
8
フォーク
1
平均マージ
1時間
マージ済み PR(30日)
83

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

sjames/syscribe のほかの issue

sjames/syscribe の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。