Skip to content

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

fix(lsp): append definition to candidate ID (#14066)

rebelice1ebea3019c68
diff --git a/backend/plugin/parser/base/complete.go b/backend/plugin/parser/base/complete.go
index 6b9024e686..abd08596a1 100644
--- a/backend/plugin/parser/base/complete.go
+++ b/backend/plugin/parser/base/complete.go
@@ -40,7 +40,7 @@ type Candidate struct {
}
func (c Candidate) String() string {
- return fmt.Sprintf("%s (%s)", c.Text, c.Type)
+ return fmt.Sprintf("%s (%s) %s", c.Text, c.Type, c.Definition)
}
type TableReference interface {
diff --git a/backend/plugin/parser/plsql/test-data/test_completion.yaml b/backend/plugin/parser/plsql/test-data/test_completion.yaml
index 77c52f0954..5bda6a66ee 100644
--- a/backend/plugin/parser/plsql/test-data/test_completion.yaml
+++ b/backend/plugin/parser/plsql/test-data/test_completion.yaml
@@ -270,6 +270,10 @@
type: TABLE
definition: ""
comment: ""
+ - text: C1
+ type: COLUMN
+ definition: ""
+ comment: ""
- text: C1
type: COLUMN
definition: SCHEMA1.T1 | int, NOT NULL