Skip to content

The IDE you know, rebuilt in Rust. IntelliJ IDEA–style keymap, tool windows and search-everywhere in a fast native app: editor, code insight, debugger, Git, terminal, database and HTTP clients for 60+ languages.

484 B
Raw Blame
/** Backend (LSP) symbol kinds → `SymbolBadge` kinds, so every kind gets an IDEA node icon. */
export function badgeKind(kind: string): string {
  switch (kind) {
    case "typeAlias":
    case "typeParameter":
      return "type";
    case "enumMember":
      return "constant";
    case "macro":
    case "operator":
      return "function";
    case "event":
    case "key":
      return "property";
    case "unknown":
      return "text";
    default:
      return kind;
  }
}