diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-04-23 18:48:26 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-04-23 18:48:26 +0800 |
commit | 5381bf4da77eb7903f8294d9cf177480f5590499 (patch) | |
tree | 85c2005751389708a4f0734f571c555b264c13ee /script | |
parent | 86557f99ac61fd23f6bb2184f8b9dfb94a76772e (diff) | |
download | lua-language-server-5381bf4da77eb7903f8294d9cf177480f5590499.zip |
fix async of text
Diffstat (limited to 'script')
-rw-r--r-- | script/provider/provider.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua index ea3f2442..784cfe2b 100644 --- a/script/provider/provider.lua +++ b/script/provider/provider.lua @@ -260,6 +260,10 @@ m.register 'textDocument/didChange' { ---@async function (params) local doc = params.textDocument + local scheme = furi.split(doc.uri) + if scheme ~= 'file' then + return + end local changes = params.contentChanges local uri = files.getRealUri(doc.uri) workspace.awaitReady(uri) |