Commit b6e59aa
committed
feat: support param snippets with space
Currently the 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
```1 parent 00dc914 commit b6e59aa
File tree
2 files changed
+14
-7
lines changed- script/core/completion
- test/completion
2 files changed
+14
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2158 | 2158 | | |
2159 | 2159 | | |
2160 | 2160 | | |
2161 | | - | |
| 2161 | + | |
2162 | 2162 | | |
2163 | 2163 | | |
2164 | 2164 | | |
| |||
2182 | 2182 | | |
2183 | 2183 | | |
2184 | 2184 | | |
2185 | | - | |
| 2185 | + | |
| 2186 | + | |
2186 | 2187 | | |
2187 | 2188 | | |
2188 | 2189 | | |
| |||
2200 | 2201 | | |
2201 | 2202 | | |
2202 | 2203 | | |
2203 | | - | |
| 2204 | + | |
2204 | 2205 | | |
2205 | 2206 | | |
2206 | 2207 | | |
| |||
2222 | 2223 | | |
2223 | 2224 | | |
2224 | 2225 | | |
2225 | | - | |
| 2226 | + | |
2226 | 2227 | | |
2227 | 2228 | | |
2228 | 2229 | | |
| |||
2240 | 2241 | | |
2241 | 2242 | | |
2242 | 2243 | | |
2243 | | - | |
2244 | | - | |
2245 | | - | |
| 2244 | + | |
| 2245 | + | |
| 2246 | + | |
2246 | 2247 | | |
2247 | 2248 | | |
2248 | 2249 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3863 | 3863 | | |
3864 | 3864 | | |
3865 | 3865 | | |
| 3866 | + | |
| 3867 | + | |
| 3868 | + | |
| 3869 | + | |
| 3870 | + | |
| 3871 | + | |
3866 | 3872 | | |
3867 | 3873 | | |
3868 | 3874 | | |
| |||
0 commit comments