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.

394 B
Raw Blame
/** Merge editor tab input; kept apart from `MergeEditor` so opening one does not load it. */
import type { EditorInput } from "@/workbench/contributions";

export const MERGE_KIND = "merge";

export interface MergeData {
  path: string;
}

export function mergeInput(path: string): EditorInput {
  return { kind: MERGE_KIND, key: `merge:${path}`, path, data: { path } satisfies MergeData };
}