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?
Diagnostics/Syntax Checking
Expected Behaviour
An empty space (literally just ) along with "Lua.workspace.useGitIgnore" : true being set seems to be causing my whole project to be ignored.
Actual Behaviour
I'd expect it to be ignored. The .gitignore docs (https://git-scm.com/docs/gitignore#_pattern_format) say:
Trailing spaces are ignored unless they are quoted with backslash ("").
Reproduction steps
- Assign global in
a.lua: x = 100
- Add
.gitignore with empty space character
- See below:
Removing the .gitignore file fixes the issue.
Additional Notes
No response
Log File
No response
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?
Diagnostics/Syntax Checking
Expected Behaviour
An empty space (literally just
) along with"Lua.workspace.useGitIgnore" : truebeing set seems to be causing my whole project to be ignored.Actual Behaviour
I'd expect it to be ignored. The
.gitignoredocs (https://git-scm.com/docs/gitignore#_pattern_format) say:Reproduction steps
a.lua:x = 100.gitignorewith empty space characterRemoving the
.gitignorefile fixes the issue.Additional Notes
No response
Log File
No response