From 632b98d4ddeadadc0c362391020e96ae2736accd Mon Sep 17 00:00:00 2001 From: sumneko Date: Wed, 15 May 2019 19:24:48 +0800 Subject: =?UTF-8?q?=E6=95=B4=E7=90=86=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/method/workspace/didChangeWatchedFiles.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'server/src/method') 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 -- cgit v1.2.3