mirror of
https://github.com/aljazceru/opencode.git
synced 2026-01-25 02:34:54 +01:00
feat: experimental skip bootstrap
This commit is contained in:
@@ -12,6 +12,7 @@ export namespace Flag {
|
|||||||
|
|
||||||
// Experimental
|
// Experimental
|
||||||
export const OPENCODE_EXPERIMENTAL_WATCHER = truthy("OPENCODE_EXPERIMENTAL_WATCHER")
|
export const OPENCODE_EXPERIMENTAL_WATCHER = truthy("OPENCODE_EXPERIMENTAL_WATCHER")
|
||||||
|
export const OPENCODE_EXPERIMENTAL_NO_BOOTSTRAP = truthy("OPENCODE_EXPERIMENTAL_NO_BOOTSTRAP")
|
||||||
|
|
||||||
function truthy(key: string) {
|
function truthy(key: string) {
|
||||||
const value = process.env[key]?.toLowerCase()
|
const value = process.env[key]?.toLowerCase()
|
||||||
|
|||||||
@@ -5,8 +5,10 @@ import { LSP } from "../lsp"
|
|||||||
import { Snapshot } from "../snapshot"
|
import { Snapshot } from "../snapshot"
|
||||||
import { FileWatcher } from "../file/watcher"
|
import { FileWatcher } from "../file/watcher"
|
||||||
import { File } from "../file"
|
import { File } from "../file"
|
||||||
|
import { Flag } from "../flag/flag"
|
||||||
|
|
||||||
export async function InstanceBootstrap() {
|
export async function InstanceBootstrap() {
|
||||||
|
if (Flag.OPENCODE_EXPERIMENTAL_NO_BOOTSTRAP) return
|
||||||
await Plugin.init()
|
await Plugin.init()
|
||||||
Share.init()
|
Share.init()
|
||||||
Format.init()
|
Format.init()
|
||||||
|
|||||||
Reference in New Issue
Block a user