lua-language-server
lua-language-server copied to clipboard
Goto autocompletion doesn't respect Editor: Insert Spaces setting
How are you using the lua-language-server?
Visual Studio Code Extension (sumneko.lua)
Which OS are you using?
Windows
What is the issue affecting?
Completion
Expected Behaviour
As can be seen in the images below, the autocompletion of goto continue
will indent the ::continue::
line with four spaces, while my settings have Editor: insert spaces
unchecked, which means it should insert a tab character instead.
Actual Behaviour
Note: in these images, the tab character is rendered as an arrow, while spaces are rendered as dots.
Image 1
Image 2
Reproduction steps
- In VSCode, set your Editor: Insert Spaces setting to false
- Try the following code:
local arr = {}
for k,v in pairs(arr) do
if type(k) == "string" then
goto continue
end
::continue::
end
- When you start typing goto continue, and select the popup, you'll get the four spaces indentation instead of tab on the
::continue::
line.
I don't know the indentation in this request, maybe I should open an issue to upstream
Where is that, the VSCode repo?
LSP
@sumneko Have you opened an issue upstream?