diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-03-25 22:41:52 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-03-25 22:41:52 +0800 |
commit | c5ac7aa810c1f39c3c09de02b7d43be88e87b1f4 (patch) | |
tree | b4244b0f1c4b10a985c241d0d67b08db94f4b739 /test | |
parent | 1e3c7a0c12d215fc5c61dff6e8f2091a678962ff (diff) | |
parent | f6b9b0e94764b7f950a4a0e7c41df12a75448edf (diff) | |
download | lua-language-server-c5ac7aa810c1f39c3c09de02b7d43be88e87b1f4.zip |
Merge commit 'f6b9b0e94764b7f950a4a0e7c41df12a75448edf' into 3.0
Diffstat (limited to 'test')
-rw-r--r-- | test/tclient/tests/folders-with-single-file.lua | 4 | ||||
-rw-r--r-- | test/tclient/tests/single-mode.lua | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/test/tclient/tests/folders-with-single-file.lua b/test/tclient/tests/folders-with-single-file.lua index e77535c9..2a5db70b 100644 --- a/test/tclient/tests/folders-with-single-file.lua +++ b/test/tclient/tests/folders-with-single-file.lua @@ -45,7 +45,7 @@ print(x) client:notify('textDocument/didOpen', { textDocument = { - uri = 'test://single-file.lua', + uri = 'file://single-file.lua', languageId = 'lua', version = 0, text = [[ @@ -58,7 +58,7 @@ print(x) ws.awaitReady(nil) local locations = client:awaitRequest('textDocument/definition', { - textDocument = { uri = 'test://single-file.lua' }, + textDocument = { uri = 'file://single-file.lua' }, position = { line = 1, character = 0 }, }) diff --git a/test/tclient/tests/single-mode.lua b/test/tclient/tests/single-mode.lua index f79fa2e8..4e14415b 100644 --- a/test/tclient/tests/single-mode.lua +++ b/test/tclient/tests/single-mode.lua @@ -9,7 +9,7 @@ lclient():start(function (client) client:notify('textDocument/didOpen', { textDocument = { - uri = 'test://single-file.lua', + uri = 'file://single-file.lua', languageId = 'lua', version = 0, text = [[ @@ -22,13 +22,13 @@ print(x) ws.awaitReady() local locations = client:awaitRequest('textDocument/definition', { - textDocument = { uri = 'test://single-file.lua' }, + textDocument = { uri = 'file://single-file.lua' }, position = { line = 1, character = 7 }, }) assert(util.equal(locations, { { - uri = 'test://single-file.lua', + uri = 'file://single-file.lua', range = { start = { line = 0, character = 6 }, ['end'] = { line = 0, character = 7 }, @@ -37,7 +37,7 @@ print(x) })) local locations = client:awaitRequest('textDocument/definition', { - textDocument = { uri = 'test://single-file.lua' }, + textDocument = { uri = 'file://single-file.lua' }, position = { line = 1, character = 0 }, }) |