diff options
author | Lewis Russell <lewis6991@gmail.com> | 2023-09-25 12:27:57 +0100 |
---|---|---|
committer | Lewis Russell <lewis6991@gmail.com> | 2023-09-25 12:30:58 +0100 |
commit | 18989b42e4fdd6d299a96256d45221f1f244046a (patch) | |
tree | 5508b3290e774013de0f56f0c2ab7794cfe2915d /test/completion/common.lua | |
parent | 00dc914c684751296ad74431cb4f6f0459c93e7d (diff) | |
download | lua-language-server-18989b42e4fdd6d299a96256d45221f1f244046a.zip |
feat: support param snippets with space
Currently LuaLS will expand:
```lua
---<??>
local x = function (x, y) end
```
with:
```lua
---comment
---@param x any
---@param y any
local x = function (x, y) end
```
This change adds a variation of this snippet to expand:
```lua
--- <??>
local x = function (x, y) end
```
with:
```lua
--- comment
--- @param x any
--- @param y any
local x = function (x, y) end
```
Diffstat (limited to 'test/completion/common.lua')
-rw-r--r-- | test/completion/common.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/completion/common.lua b/test/completion/common.lua index bd317259..7de1c325 100644 --- a/test/completion/common.lua +++ b/test/completion/common.lua @@ -3864,6 +3864,12 @@ local x = function (x, y) end (EXISTS) TEST [[ +--- <??> +local x = function (x, y) end +]] +(EXISTS) + +TEST [[ local x = { <??> }) |