diff options
Diffstat (limited to 'test/tclient')
-rw-r--r-- | test/tclient/tests/files-associations.lua | 5 | ||||
-rw-r--r-- | test/tclient/tests/library-ignore-limit.lua | 8 | ||||
-rw-r--r-- | test/tclient/tests/load-library.lua | 8 | ||||
-rw-r--r-- | test/tclient/tests/load-relative-library.lua | 13 | ||||
-rw-r--r-- | test/tclient/tests/modify-luarc.lua | 8 | ||||
-rw-r--r-- | test/tclient/tests/multi-workspace.lua | 5 |
6 files changed, 43 insertions, 4 deletions
diff --git a/test/tclient/tests/files-associations.lua b/test/tclient/tests/files-associations.lua index 12c04926..0000bb12 100644 --- a/test/tclient/tests/files-associations.lua +++ b/test/tclient/tests/files-associations.lua @@ -35,6 +35,11 @@ lclient():start(function (client) name = 'ws', uri = rootUri, }, + }, + capabilities = { + workspace = { + configuration = true, + } } } diff --git a/test/tclient/tests/library-ignore-limit.lua b/test/tclient/tests/library-ignore-limit.lua index 3f30a4e9..d34eead1 100644 --- a/test/tclient/tests/library-ignore-limit.lua +++ b/test/tclient/tests/library-ignore-limit.lua @@ -25,7 +25,13 @@ lclient():start(function (client) util.saveFile(largeFilePath, string.rep('--this is a large file\n', 100000)) end - client:initialize() + client:initialize { + capabilities = { + workspace = { + configuration = true, + } + } + } ws.awaitReady() diff --git a/test/tclient/tests/load-library.lua b/test/tclient/tests/load-library.lua index cbd1492a..a2d7d2bc 100644 --- a/test/tclient/tests/load-library.lua +++ b/test/tclient/tests/load-library.lua @@ -25,7 +25,13 @@ lclient():start(function (client) util.saveFile(libraryFilePath, 'LIBRARY_FILE = true') end - client:initialize() + client:initialize { + capabilities = { + workspace = { + configuration = true, + } + } + } client:notify('textDocument/didOpen', { textDocument = { diff --git a/test/tclient/tests/load-relative-library.lua b/test/tclient/tests/load-relative-library.lua index ad3ebb4a..2a2484d6 100644 --- a/test/tclient/tests/load-relative-library.lua +++ b/test/tclient/tests/load-relative-library.lua @@ -15,6 +15,11 @@ lclient():start(function (client) client:initialize { rootUri = furi.encode(workspacePath), + capabilities = { + workspace = { + configuration = true, + } + } } client:register('workspace/configuration', function () @@ -30,7 +35,13 @@ lclient():start(function (client) util.saveFile(libraryFilePath, 'LIBRARY_FILE = true') end - client:initialize() + client:initialize { + capabilities = { + workspace = { + configuration = true, + } + } + } client:notify('textDocument/didOpen', { textDocument = { diff --git a/test/tclient/tests/modify-luarc.lua b/test/tclient/tests/modify-luarc.lua index 62d97a41..60927276 100644 --- a/test/tclient/tests/modify-luarc.lua +++ b/test/tclient/tests/modify-luarc.lua @@ -16,7 +16,13 @@ lclient():start(function (languageClient) CONFIGPATH = configPath - languageClient:initialize() + languageClient:initialize { + capabilities = { + workspace = { + configuration = true, + } + } + } ws.awaitReady() diff --git a/test/tclient/tests/multi-workspace.lua b/test/tclient/tests/multi-workspace.lua index c4636c53..7660f03d 100644 --- a/test/tclient/tests/multi-workspace.lua +++ b/test/tclient/tests/multi-workspace.lua @@ -55,6 +55,11 @@ lclient():start(function (client) name = 'ws2', uri = rootUri .. '/ws2', }, + }, + capabilities = { + workspace = { + configuration = true, + } } } |