Skip to main content

Ghost Diagnostics

GhostMap shows warnings and information directly in the editor when it detects malformed or ambiguous annotations.

Diagnostics table

CodeSeverityWhen it appears
ghost-unclosed-rangeWarningA @ghost #name start never received its matching @ghost end. It degrades to a Point Anchor (does not drag later symbols as children).
ghost-unexpected-endWarningA @ghost end exists with no opening (start) before it.
ghost-malformed-syntaxWarningUnrecognized hybrid syntax after @ghost (see Grammar rules). Includes a suggestion for the two matching quick fixes.
ghost-detached-symbolInformationA Contextual Anchor found no symbol inside the ownership radius.
ghost-ambiguous-ownershipInformationA Contextual Anchor has several candidates equally close; their names are listed.

Available Code Actions

  • "Add @ghost annotation": on a function/class line with no previous annotation, inserts // @ghost description: | status: todo just above it.
  • "Convert to semantic anchor: @ghost #token" / "Convert to contextual anchor: @ghost description: ...": on malformed hybrid syntax.
  • Misspelled-key fix (statu: to status:) when the key contains "stat"/"statu" but is not exactly status or description.
  • Invalid status value fix: suggests the closest supported status (by prefix) or todo.
  • "Add #anchor name": on a @ghost line without #, start, or end that is not the closest anchor to any symbol, suggests adding #name.

Next step

Continue with Settings to tune GhostMap's behavior for your project.