summaryrefslogtreecommitdiff
path: root/server-beta/src/proto/define.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-11-17 17:36:23 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-11-17 17:36:23 +0800
commita139003e6f239650baaef69f747c7ee9558d0170 (patch)
tree79a1c1d821abe107f7060cd0c6214164539f5b7c /server-beta/src/proto/define.lua
parent6b25262260be44f3478d11b7bcb22bc22fba781b (diff)
downloadlua-language-server-a139003e6f239650baaef69f747c7ee9558d0170.zip
rename
Diffstat (limited to 'server-beta/src/proto/define.lua')
-rw-r--r--server-beta/src/proto/define.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/server-beta/src/proto/define.lua b/server-beta/src/proto/define.lua
index a6ad7e47..2319a219 100644
--- a/server-beta/src/proto/define.lua
+++ b/server-beta/src/proto/define.lua
@@ -81,6 +81,13 @@ function m.locationLink(uri, range, selection, origin)
}
end
+function m.textEdit(range, newtext)
+ return {
+ range = range,
+ newText = newtext,
+ }
+end
+
--- 诊断等级
m.DiagnosticSeverity = {
Error = 1,