From 9cbeeb3828143a22cda1a3e631e30df8fb2242d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Thu, 21 Oct 2021 17:50:00 +0800 Subject: fix #744 --- test/command/auto-require.lua | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'test/command') 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 -- cgit v1.2.3