diff options
Diffstat (limited to 'src/method/textDocument/didOpen.lua')
-rw-r--r-- | src/method/textDocument/didOpen.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/method/textDocument/didOpen.lua b/src/method/textDocument/didOpen.lua index 79392a79..8be4fa89 100644 --- a/src/method/textDocument/didOpen.lua +++ b/src/method/textDocument/didOpen.lua @@ -1,4 +1,6 @@ return function (lsp, params) - lsp:saveText(params.url, params.version, arams.text) + local doc = params.textDocument + log.debug('打开文件:', doc.uri) + lsp:saveText(doc.uri, doc.version, doc.text) return true end |