summaryrefslogtreecommitdiff
path: root/server/src/method
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/method')
-rw-r--r--server/src/method/workspace/didChangeWatchedFiles.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/src/method/workspace/didChangeWatchedFiles.lua b/server/src/method/workspace/didChangeWatchedFiles.lua
index 06d840e1..dcca48f1 100644
--- a/server/src/method/workspace/didChangeWatchedFiles.lua
+++ b/server/src/method/workspace/didChangeWatchedFiles.lua
@@ -1,4 +1,5 @@
local fs = require 'bee.filesystem'
+local uric = require 'uri'
local FileChangeType = {
Created = 1,
@@ -12,7 +13,7 @@ return function (lsp, params)
end
local needReset
for _, change in ipairs(params.changes) do
- local path = lsp.workspace:uriDecode(change.uri)
+ local path = uric.decode(change.uri)
if change.type == FileChangeType.Created then
lsp.workspace:addFile(path)
if lsp:getVM(change.uri) then