diff options
author | sumneko <sumneko@hotmail.com> | 2022-01-23 03:43:08 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2022-01-23 03:43:08 +0800 |
commit | 1c8095439f8d738390b3cc19fa3f82853dd89f95 (patch) | |
tree | 2416df47fe8364ddf49b9ae43dc0de00d4f84f17 /test/tclient | |
parent | e5ef01c23e250a869e2e023ba83de1f5a28feb97 (diff) | |
download | lua-language-server-1c8095439f8d738390b3cc19fa3f82853dd89f95.zip |
fix test
Diffstat (limited to 'test/tclient')
-rw-r--r-- | test/tclient/tests/multi-workspace.lua | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/test/tclient/tests/multi-workspace.lua b/test/tclient/tests/multi-workspace.lua index 99b7f122..02ebacbd 100644 --- a/test/tclient/tests/multi-workspace.lua +++ b/test/tclient/tests/multi-workspace.lua @@ -4,6 +4,7 @@ local util = require 'utility' local furi = require 'file-uri' local ws = require 'workspace' local files = require 'files' +local scope = require 'workspace.scope' local rootPath = LOGPATH .. '/multi-workspace' local rootUri = furi.encode(rootPath) @@ -66,11 +67,11 @@ lclient():start(function (client) assert(files.getState(rootUri .. '/lb1/test.lua') ~= nil) assert(files.getState(rootUri .. '/lb2/test.lua') ~= nil) - assert(ws.getScope(rootUri .. '/ws1/test.lua').uri == rootUri .. '/ws1') - assert(ws.getScope(rootUri .. '/ws2/test.lua').uri == rootUri .. '/ws2') - assert(ws.getScope(rootUri .. '/share/test.lua').uri == rootUri .. '/ws1') - assert(ws.getScope(rootUri .. '/lb1/test.lua').uri == rootUri .. '/ws1') - assert(ws.getScope(rootUri .. '/lb2/test.lua').uri == rootUri .. '/ws2') + assert(scope.getScope(rootUri .. '/ws1/test.lua').uri == rootUri .. '/ws1') + assert(scope.getScope(rootUri .. '/ws2/test.lua').uri == rootUri .. '/ws2') + assert(scope.getScope(rootUri .. '/share/test.lua').uri == rootUri .. '/ws1') + assert(scope.getScope(rootUri .. '/lb1/test.lua').uri == rootUri .. '/ws1') + assert(scope.getScope(rootUri .. '/lb2/test.lua').uri == rootUri .. '/ws2') assert(files.isLibrary(rootUri .. '/ws1/test.lua') == false) assert(files.isLibrary(rootUri .. '/ws2/test.lua') == false) |