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
/** Color swatches in the editor gutter for color literals (Settings › Editor › General › Gutter Icons). */
import { registerEditorContribution } from "@/editor/api";
import { pluginColorPreview } from "./pluginColors";
import { colorPreviewGutter } from "./gutter";

export function activate(): () => void {
  return registerEditorContribution({
    id: "colorPreview.gutter",
    order: 59,
    extensions: (ctx) => [colorPreviewGutter(ctx), pluginColorPreview(ctx)],
  });
}