aboutsummaryrefslogtreecommitdiff
path: root/packages/bun-vscode/src/extension.ts
blob: f840dd7a95068ce377937a85701c3aef22edcaa0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import * as vscode from "vscode";
import { activateBunDebug } from "./activate";

const runMode: "external" | "server" | "namedPipeServer" | "inline" = "inline";

export function activate(context: vscode.ExtensionContext) {
  if (runMode === "inline") {
    activateBunDebug(context);
    return;
  }
  throw new Error(`This extension does not support '${runMode}' mode.`);
}

export function deactivate() {
  // No-op
}