✨ Line Annotations
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
調査の方向性
CodeEditSourceEditor のエントリポイントから開始し、提案されている LineAnnotation モデルと AnnotationAggregatedDropdownView のコンセプトを確認してください。要件を関連する issue #354 と比較し、グループ化され、severity に応じてスタイル付けされたアノテーション、クリーンなモデル更新、スクロールを考慮した展開および切り詰め動作を基準に完了条件を定義してください。
索引モデルが issue の本文から書いたものです。
説明
Description
Implement the visual display system for Line Annotations in the source editor. These annotations should appear directly beneath relevant lines of code and visually communicate messages such as errors, warnings, or informational notes.
Requirements
- Add support for displaying annotations below lines in the source editor
- An annotation should include:
- A severity icon (error, warning, info)
- A short descriptive message
- Multiple annotations should be stackable if they occur on the same line
- Styling should reflect severity (e.g., color, icon)
- Annotations should update cleanly when the underlying data model changes (insert, remove, update)
- Annotations should avoid disrupting layout:
- Automatically shrink if needed to preserve line spacing.
- If the message is truncated, allow users to click the annotation to reveal a popover with the full message.
- This popover should scroll with the editor and remain positioned relative to its line.
- If the line scrolls out of view and the annotation is expanded, the popover should remain visible—docked to the top or bottom edge of the editor—until dismissed.
Implementation Details
- The expanded popover view (when multiple annotations exist or a message is truncated) may be called AnnotationAggregatedDropdownView, similar to what is used in other macOS editors.
- The source editor (
CodeEditSourceEditor) will accept a new property:annotations: Set<LineAnnotation> - LineAnnotation is a lightweight data model that represents a message to display beneath a specific line:
struct LineAnnotation: Hashable, Identifiable { let id: UUID = UUID() let line: Int let column: Int let severity: Severity let text: String } enum Severity { case error, warning, info, live } - The editor should group annotations by line internally and render them accordingly.
Additional Context
This is the foundational work for visual feedback in the editor. Future issues will introduce the system for feeding issues into the annotations (e.g., from builds, linters, or language servers) via an issue manager.
This feature is a key part of improving the editing experience by surfacing issues contextually, and sets the stage for deeper diagnostic and development tooling integration.
Related Issues
Screenshots
Warning

Warning Expanded

Error

Multiple Errors

Multiple Errors Expanded

- 主要言語
- Swift
- スター
- 720
- フォーク
- 162
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
CodeEditApp/CodeEditSourceEditor のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
CodeEditApp/CodeEditSourceEditor#377 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
CodeEditApp/CodeEditSourceEditor#376 · コメント 1 件 ·
-
難易度 1/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
CodeEditApp/CodeEditSourceEditor#378 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 32/100
CodeEditApp/CodeEditSourceEditor の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
manaflow-ai/cmux#13763 ·
-
type: feature request
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
googleapis/google-cloud-swift#1036 · コメント 1 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
wultra/mtoken-sdk-ios#253 ·
-
area:dictation documentation P2
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
uttrflow/uttrflow-swift#1180 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100