Skip to content

Editor Support

Examples of tools (editor support):

  • syntax highlighting (usually regex based)

  • semantic highlighting (based on information in the AST)

  • hover tooltips

  • code navigation

    • Go To Definition
    • Go To Implementation
    • Find All References
    • Find All Implementations
    • Show Call Hierarchy
  • document outline

  • real-time diagnostics (error checking)

    screenshot of a red wavy underline of an identifier inside VSCode, with an error saying "could not find definition for `abc`"
  • code completion (IntelliSense)

    screenshot of a VSCode code completion dropdown shown when writing a CSS property name
  • code actions (e.g. Quick Fix)

Language Server Protocol

example flow: