diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-12-16 20:00:24 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-12-16 20:00:24 +0800 |
commit | 89a1c809662a2f74505b742cafcf78359db21ef3 (patch) | |
tree | f9e6bfdd021a96bb273dcd8b686a922ee29273fb /script/provider/provider.lua | |
parent | 6a99efd3ab8708f8efd5f12a9a4bb93acf29c661 (diff) | |
download | lua-language-server-89a1c809662a2f74505b742cafcf78359db21ef3.zip |
pass tests
Diffstat (limited to 'script/provider/provider.lua')
-rw-r--r-- | script/provider/provider.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua index a01b5d10..488f1a61 100644 --- a/script/provider/provider.lua +++ b/script/provider/provider.lua @@ -271,12 +271,13 @@ m.register 'textDocument/didOpen' { end local uri = files.getRealUri(doc.uri) log.debug('didOpen', uri) - workspace.awaitReady(uri) local text = doc.text files.setText(uri, text, true, function (file) file.version = doc.version end) files.open(uri) + workspace.awaitReady(uri) + files.getState(uri) end } |