summaryrefslogtreecommitdiff
path: root/server/src/method/textDocument/didOpen.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/method/textDocument/didOpen.lua')
-rw-r--r--server/src/method/textDocument/didOpen.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/src/method/textDocument/didOpen.lua b/server/src/method/textDocument/didOpen.lua
new file mode 100644
index 00000000..27fdda71
--- /dev/null
+++ b/server/src/method/textDocument/didOpen.lua
@@ -0,0 +1,5 @@
+return function (lsp, params)
+ local doc = params.textDocument
+ lsp:saveText(doc.uri, doc.version, doc.text)
+ return true
+end