summaryrefslogtreecommitdiffhomepage
path: root/internal/lsp/protocol/tables.go
diff options
context:
space:
mode:
authorKujtim Hoxha <[email protected]>2025-04-03 15:20:15 +0200
committerKujtim Hoxha <[email protected]>2025-04-03 17:23:41 +0200
commitcfdd687216799cb5b47f099f1e7cd5dd16b3bdd0 (patch)
treea822bfde1463a7080c0ea06dd17796d7a1617d3d /internal/lsp/protocol/tables.go
parentafd9ad0560d76c2a6d161dad52553b10ff428905 (diff)
downloadopencode-cfdd687216799cb5b47f099f1e7cd5dd16b3bdd0.tar.gz
opencode-cfdd687216799cb5b47f099f1e7cd5dd16b3bdd0.zip
add initial lsp support
Diffstat (limited to 'internal/lsp/protocol/tables.go')
-rw-r--r--internal/lsp/protocol/tables.go30
1 files changed, 30 insertions, 0 deletions
diff --git a/internal/lsp/protocol/tables.go b/internal/lsp/protocol/tables.go
new file mode 100644
index 000000000..6a8fb99e0
--- /dev/null
+++ b/internal/lsp/protocol/tables.go
@@ -0,0 +1,30 @@
+package protocol
+
+var TableKindMap = map[SymbolKind]string{
+ File: "File",
+ Module: "Module",
+ Namespace: "Namespace",
+ Package: "Package",
+ Class: "Class",
+ Method: "Method",
+ Property: "Property",
+ Field: "Field",
+ Constructor: "Constructor",
+ Enum: "Enum",
+ Interface: "Interface",
+ Function: "Function",
+ Variable: "Variable",
+ Constant: "Constant",
+ String: "String",
+ Number: "Number",
+ Boolean: "Boolean",
+ Array: "Array",
+ Object: "Object",
+ Key: "Key",
+ Null: "Null",
+ EnumMember: "EnumMember",
+ Struct: "Struct",
+ Event: "Event",
+ Operator: "Operator",
+ TypeParameter: "TypeParameter",
+}