Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

✨ Display Issues as Line Annotations In Source Editor

Open
#2,015 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
swift

Research direction

Start by locating DiagnosticManager, DiagnosticIssue, and the views that use CodeEditSourceEditor. Trace how the current file is identified and wire its diagnostics into LineAnnotation values passed to the editor; done means file-specific annotations appear below affected lines using the existing editor rendering.

Written by the indexing model from the issue text.

Description

enhancement extensions source editor
Description

Use the newly created DiagnosticManager to provide file-specific diagnostics to the editor via LineAnnotations. This connection allows visual issues to appear directly in the source editor view below the affected lines.

Requirements
  • Convert DiagnosticIssue instances for the current file into LineAnnotation objects:
    struct LineAnnotation: Hashable, Identifiable {
        let id: UUID = UUID()
        let line: Int
        let column: Int
        let severity: DiagnosticIssue.Severity
        let text: String
    }
    
  • Extend DiagnosticManager with a helper:
    func annotations(for file: URL) -> Set<LineAnnotation>
    
  • In views where CodeEditSourceEditor is used:
    • Access the current file’s annotations using the manager
    • Pass them into the editor view via:
    annotations: Set<LineAnnotation>
    
  • The editor should already know how to render the annotations; this task is only concerned with wiring up the data source.
Additional Context

This connects the data produced by DiagnosticManager to line annotations introduced in CodeEditSourceEditor. This is a key step in surfacing diagnostics in a context-aware and developer-friendly way.

Later extensions might include showing annotations from multiple sources, updating annotations live from LSP, or supporting quick fixes from the underlying DiagnosticIssue.

Related Issues
Dominant language
Swift
Stars
23k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from CodeEditApp/CodeEdit

All issues in CodeEditApp/CodeEdit

Similar issues

More Swift issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.