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.

329 B
Raw Blame
import { toolWindowService, type ToolWindowService } from "@/workbench/contributions";

/** The tool window service, or undefined before the workbench provided it (tests). */
export function maybeToolWindowService(): ToolWindowService | undefined {
  try {
    return toolWindowService();
  } catch {
    return undefined;
  }
}