summaryrefslogtreecommitdiff
path: root/test/tclient/tests/single-mode.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/tclient/tests/single-mode.lua')
-rw-r--r--test/tclient/tests/single-mode.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/tclient/tests/single-mode.lua b/test/tclient/tests/single-mode.lua
index 0a7f85ff..10f3e2da 100644
--- a/test/tclient/tests/single-mode.lua
+++ b/test/tclient/tests/single-mode.lua
@@ -35,4 +35,11 @@ print(x)
}
}
}))
+
+ local locations = client:awaitRequest('textDocument/definition', {
+ textDocument = { uri = 'test://single-file.lua' },
+ position = { line = 1, character = 0 },
+ })
+
+ assert(#locations > 0)
end)