diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-10-21 17:50:00 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-10-21 17:50:00 +0800 |
commit | 9cbeeb3828143a22cda1a3e631e30df8fb2242d9 (patch) | |
tree | 2029a380ec03e217ecfbd10a85fc8ff7ebc0825c /test/command | |
parent | b5b6f78026bb31c55ef78d349bf725a03b743c3b (diff) | |
download | lua-language-server-9cbeeb3828143a22cda1a3e631e30df8fb2242d9.zip |
fix #744
Diffstat (limited to 'test/command')
-rw-r--r-- | test/command/auto-require.lua | 18 |
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 |