diff options
author | sumneko <sumneko@hotmail.com> | 2019-05-15 19:24:48 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2019-05-15 19:24:48 +0800 |
commit | 632b98d4ddeadadc0c362391020e96ae2736accd (patch) | |
tree | 9712c5b1154cb6a45dbc7068914bb4e9bb6d3cd6 /server/test/crossfile/references.lua | |
parent | 935faea26c5f148651d1371e6979f016a14c3aa0 (diff) | |
download | lua-language-server-632b98d4ddeadadc0c362391020e96ae2736accd.zip |
整理代码
Diffstat (limited to 'server/test/crossfile/references.lua')
-rw-r--r-- | server/test/crossfile/references.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/server/test/crossfile/references.lua b/server/test/crossfile/references.lua index dd1958aa..9f81707c 100644 --- a/server/test/crossfile/references.lua +++ b/server/test/crossfile/references.lua @@ -2,6 +2,7 @@ local service = require 'service' local workspace = require 'workspace' local fs = require 'bee.filesystem' local core = require 'core' +local uric = require 'uri' rawset(_G, 'TEST', true) @@ -79,11 +80,11 @@ function TEST(data) local pos local expect = {} for _, info in ipairs(data) do - local uri = ws:uriEncode(fs.path(info.path)) - ws:addFile(ws:uriDecode(uri)) + local uri = uric.encode(fs.path(info.path)) + ws:addFile(uric.decode(uri)) end for _, info in ipairs(data) do - local uri = ws:uriEncode(fs.path(info.path)) + local uri = uric.encode(fs.path(info.path)) local script = info.content local list = catch_target(script) for _, location in ipairs(list) do |