summaryrefslogtreecommitdiff
path: root/script/provider/provider.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2023-01-31 18:43:22 +0800
committer最萌小汐 <sumneko@hotmail.com>2023-01-31 18:43:22 +0800
commit05b2d2faf2f5d07c660d46f8eac5fd5cfc56c47b (patch)
treeca9d02117793462cde595426cfb1fa5ecc07ca40 /script/provider/provider.lua
parent3255420da8236363864d12ab64f61cfa32024e35 (diff)
downloadlua-language-server-05b2d2faf2f5d07c660d46f8eac5fd5cfc56c47b.zip
supports all schemes
resolve #1862
Diffstat (limited to 'script/provider/provider.lua')
-rw-r--r--script/provider/provider.lua10
1 files changed, 0 insertions, 10 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua
index 0d7a859f..7d87dee9 100644
--- a/script/provider/provider.lua
+++ b/script/provider/provider.lua
@@ -266,11 +266,6 @@ m.register 'textDocument/didOpen' {
function (params)
local doc = params.textDocument
local uri = files.getRealUri(doc.uri)
- local scheme = furi.split(uri)
- local supports = config.get(uri, 'Lua.workspace.supportScheme')
- if not util.arrayHas(supports, scheme) then
- return
- end
log.debug('didOpen', uri)
local text = doc.text
files.setText(uri, text, true, function (file)
@@ -298,11 +293,6 @@ m.register 'textDocument/didChange' {
---@async
function (params)
local doc = params.textDocument
- local scheme = furi.split(doc.uri)
- local supports = config.get(doc.uri, 'Lua.workspace.supportScheme')
- if not util.arrayHas(supports, scheme) then
- return
- end
local changes = params.contentChanges
local uri = files.getRealUri(doc.uri)
workspace.awaitReady(uri)