feat: experimental skip bootstrap

This commit is contained in:
Adam
2025-10-09 14:50:43 -05:00
parent 47dfebf277
commit c2950d26f0
2 changed files with 3 additions and 0 deletions

View File

@@ -12,6 +12,7 @@ export namespace Flag {
// Experimental
export const OPENCODE_EXPERIMENTAL_WATCHER = truthy("OPENCODE_EXPERIMENTAL_WATCHER")
export const OPENCODE_EXPERIMENTAL_NO_BOOTSTRAP = truthy("OPENCODE_EXPERIMENTAL_NO_BOOTSTRAP")
function truthy(key: string) {
const value = process.env[key]?.toLowerCase()

View File

@@ -5,8 +5,10 @@ import { LSP } from "../lsp"
import { Snapshot } from "../snapshot"
import { FileWatcher } from "../file/watcher"
import { File } from "../file"
import { Flag } from "../flag/flag"
export async function InstanceBootstrap() {
if (Flag.OPENCODE_EXPERIMENTAL_NO_BOOTSTRAP) return
await Plugin.init()
Share.init()
Format.init()