Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore(frontend): support CLI lsp flag in release mode (#9605)
Liu Jif796cfabc25a
diff --git a/frontend/src/components/MonacoEditor/dev.ts b/frontend/src/components/MonacoEditor/dev.tsindex 2bac150433..aec4b691d2 100644--- a/frontend/src/components/MonacoEditor/dev.ts+++ b/frontend/src/components/MonacoEditor/dev.ts@@ -1,6 +1,7 @@import { useLocalStorage } from "@vueuse/core";import { defineComponent, h } from "vue";import { BBSwitch } from "@/bbkit";+import { useActuatorV1Store } from "@/store";import { isDev } from "@/utils";export const SupportedLSPTypes = ["OLD", "NEW"] as const;@@ -23,7 +24,13 @@ export const StoredLSPType = useLocalStorage<LSPType>();export const shouldUseNewLSP = () => {- return isDev() && StoredLSPType.value === "NEW";+ if (!isDev()) {+ // In release mode, look up the actuator service for CLI flag+ return useActuatorV1Store().serverInfo?.lsp;+ }++ // Use the value from UI switch in dev mode+ return StoredLSPType.value === "NEW";};export const LSPTypeSwitch = defineComponent({