summaryrefslogtreecommitdiff
path: root/test/crossfile/completion.lua
diff options
context:
space:
mode:
authorSewbacca <sebastian.kalus@kolabnow.com>2022-12-01 23:12:30 +0100
committerSewbacca <sebastian.kalus@kolabnow.com>2022-12-01 23:12:30 +0100
commit2492c1fb71d213de22756949a65e9811af50a92d (patch)
tree6d19bfedaad7e304247d123a871ac9e120181780 /test/crossfile/completion.lua
parentd848fdaf49fa8be5c12aed73cea3cac34ca8836d (diff)
parent6999dbb25bf2b7ae306599eceaa0f438ee4f8b8f (diff)
downloadlua-language-server-2492c1fb71d213de22756949a65e9811af50a92d.zip
Merge branch 'master' into feature/auto-require-without-init
Diffstat (limited to 'test/crossfile/completion.lua')
-rw-r--r--test/crossfile/completion.lua37
1 files changed, 6 insertions, 31 deletions
diff --git a/test/crossfile/completion.lua b/test/crossfile/completion.lua
index 12b33323..8504758e 100644
--- a/test/crossfile/completion.lua
+++ b/test/crossfile/completion.lua
@@ -5,36 +5,11 @@ local platform = require 'bee.platform'
local util = require 'utility'
local config = require 'config'
local catch = require 'catch'
+local define = require 'proto.define'
rawset(_G, 'TEST', true)
-local CompletionItemKind = {
- Text = 1,
- Method = 2,
- Function = 3,
- Constructor = 4,
- Field = 5,
- Variable = 6,
- Class = 7,
- Interface = 8,
- Module = 9,
- Property = 10,
- Unit = 11,
- Value = 12,
- Enum = 13,
- Keyword = 14,
- Snippet = 15,
- Color = 16,
- File = 17,
- Reference = 18,
- Folder = 19,
- EnumMember = 20,
- Constant = 21,
- Struct = 22,
- Event = 23,
- Operator = 24,
- TypeParameter = 25,
-}
+local CompletionItemKind = define.CompletionItemKind
local EXISTS = {}
@@ -413,7 +388,7 @@ config.set(nil, 'Lua.runtime.path', {
TEST {
{
- path = 'D:/xxxx/1.lua',
+ path = 'tt/xxxx/1.lua',
content = '',
},
{
@@ -423,7 +398,7 @@ TEST {
},
completion = {
{
- label = 'D:.xxxx',
+ label = 'tt.xxxx',
kind = CompletionItemKind.File,
textEdit = EXISTS,
},
@@ -439,12 +414,12 @@ config.set(nil, 'Lua.runtime.path', originRuntimePath)
local originRuntimePath = config.get(nil, 'Lua.runtime.path')
config.set(nil, 'Lua.runtime.path', {
- 'D:/?/1.lua',
+ 'tt/?/1.lua',
})
TEST {
{
- path = 'D:/xxxx/1.lua',
+ path = 'tt/xxxx/1.lua',
content = '',
},
{