diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-03-21 17:21:34 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-03-21 17:21:34 +0800 |
commit | eef0f61c8ee023550d4de3bcad0c5e2b8a16be07 (patch) | |
tree | 0aca16a8190f5b4cd4bbde460110a551ab2d6082 /script/method | |
parent | 3b13f002fa99ebf1eb50734019c3efcb56bf31a2 (diff) | |
download | lua-language-server-eef0f61c8ee023550d4de3bcad0c5e2b8a16be07.zip |
当客户端为vscode时,使用本地文档
Diffstat (limited to 'script/method')
-rw-r--r-- | script/method/initialize.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/script/method/initialize.lua b/script/method/initialize.lua index ef025ddf..2d60e839 100644 --- a/script/method/initialize.lua +++ b/script/method/initialize.lua @@ -1,5 +1,6 @@ local workspace = require 'workspace' local nonil = require 'without-check-nil' +local client = require 'client' local function allWords() local str = [[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.:('"[,#*@| ]] @@ -13,6 +14,8 @@ end return function (lsp, params) lsp._inited = true lsp.client = params + client.init(params) + log.info(table.dump(params)) if params.rootUri then lsp.workspace = workspace(lsp, 'root') |