feat(lsp): option to disable lsps installing automatically (#1997)

Co-authored-by: rekram1-node <aidenpcline@gmail.com>
This commit is contained in:
Vasiliy Kulikov 2025-08-23 06:39:19 +03:00 committed by GitHub
commit 3706b2bca7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 0 deletions

View file

@ -5,6 +5,7 @@ export namespace Flag {
export const OPENCODE_DISABLE_AUTOUPDATE = truthy("OPENCODE_DISABLE_AUTOUPDATE")
export const OPENCODE_PERMISSION = process.env["OPENCODE_PERMISSION"]
export const OPENCODE_DISABLE_DEFAULT_PLUGINS = truthy("OPENCODE_DISABLE_DEFAULT_PLUGINS")
export const OPENCODE_DISABLE_LSP_DOWNLOAD = truthy("OPENCODE_DISABLE_LSP_DOWNLOAD")
function truthy(key: string) {
const value = process.env[key]?.toLowerCase()