Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

feat: enable lsp for RedShift and RisingWave (#10015)

rebelice8c9fde1cf16b
diff --git a/backend/api/lsp/completion.go b/backend/api/lsp/completion.go
index 6c1f6d7397..f48a6f6982 100644
--- a/backend/api/lsp/completion.go
+++ b/backend/api/lsp/completion.go
@@ -43,7 +43,7 @@ func (h *Handler) handleTextDocumentCompletion(ctx context.Context, _ *jsonrpc2.
switch engine {
case storepb.Engine_MYSQL, storepb.Engine_TIDB, storepb.Engine_MARIADB, storepb.Engine_OCEANBASE:
// Nothing.
- case storepb.Engine_POSTGRES:
+ case storepb.Engine_POSTGRES, storepb.Engine_REDSHIFT, storepb.Engine_RISINGWAVE:
// Nothing.
default:
slog.Debug("Engine is not supported", slog.String("engine", engine.String()))
diff --git a/backend/plugin/parser/pg/completion.go b/backend/plugin/parser/pg/completion.go
index fa5b821ed0..291b3b7d16 100644
--- a/backend/plugin/parser/pg/completion.go
+++ b/backend/plugin/parser/pg/completion.go
@@ -23,6 +23,8 @@ var (
func init() {
base.RegisterCompleteFunc(store.Engine_POSTGRES, Completion)
+ base.RegisterCompleteFunc(store.Engine_REDSHIFT, Completion)
+ base.RegisterCompleteFunc(store.Engine_RISINGWAVE, Completion)
}
// Completion is the entry point of PostgreSQL code completion.