Skip to content

Commit 7387720

Browse files
committed
#419 remove trigger char \n for now, see #401
1 parent 6e6581b commit 7387720

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

Diff for: changelog.md

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* `CHG` completion: improve field and table
77
* `CHG` improve infer cross `ipairs`
88
* `CHG` cache globals when loading
9+
* `CHG` completion: remove trigger character `\n` for now, see [#401](https://github.com/sumneko/lua-language-server/issues/401)
910
* `FIX` diagnositc: may open file with wrong uri case
1011
* `FIX` [#406](https://github.com/sumneko/lua-language-server/issues/406)
1112

Diff for: script/provider/completion.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ local isEnable = false
44

55
local function allWords()
66
local str = [[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.:('"[,#*@|=-{ ]]
7-
local list = {'\n', '\t'}
7+
local list = {'\t'}
88
for c in str:gmatch '.' do
99
list[#list+1] = c
1010
end

Diff for: test/type_inference/init.lua

+15
Original file line numberDiff line numberDiff line change
@@ -390,3 +390,18 @@ TEST 'integer' [[
390390
for <?i?> in ipairs() do
391391
end
392392
]]
393+
394+
-- TODO
395+
--TEST 'string' [[
396+
-----@type table<string, boolean>
397+
--local t
398+
--for <?k?>, v in ipairs(t) do
399+
--end
400+
--]]
401+
--
402+
--TEST 'boolean' [[
403+
-----@type table<string, boolean>
404+
--local t
405+
--for k, <?v?> in ipairs(t) do
406+
--end
407+
--]]

0 commit comments

Comments
 (0)