summaryrefslogtreecommitdiff
path: root/test/command
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-10-21 17:50:00 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-10-21 17:50:00 +0800
commit9cbeeb3828143a22cda1a3e631e30df8fb2242d9 (patch)
tree2029a380ec03e217ecfbd10a85fc8ff7ebc0825c /test/command
parentb5b6f78026bb31c55ef78d349bf725a03b743c3b (diff)
downloadlua-language-server-9cbeeb3828143a22cda1a3e631e30df8fb2242d9.zip
fix #744
Diffstat (limited to 'test/command')
-rw-r--r--test/command/auto-require.lua18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/command/auto-require.lua b/test/command/auto-require.lua
index c2c0935f..8543a6ab 100644
--- a/test/command/auto-require.lua
+++ b/test/command/auto-require.lua
@@ -70,4 +70,22 @@ local aaaaaa = require 'aaa'
text = 'local test = require \'test\'\n'
}
+TEST [[
+local offset
+local space_size
+
+---@class A
+---@field a string
+---@field b string
+local M = {}
+
+---@return A
+function M.new()
+end
+]] 'test' {
+ start = 0,
+ finish = 0,
+ text = 'local test = require "test"\n'
+}
+
client.editText = originEditText