LuaLS / LuaLS/lua-language-server
"Lua.workspace.ignoreDir" does not work with folders that contain square brackets
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 4.4k
- Forks
- 442
- PR merge metrics
- No merged PRs in 30d
Description
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
Folders that contain [ ] square brackets can be ignored using Lua.workspace.ignoreDir.
Actual Behaviour
Folders that contain square brackets are not ignored.
Reproduction steps
-
In a workspace, create a folder
[example]with a file that contains syntax errors. -
Add that folder to your ignored directories:
"Lua.workspace.ignoreDir": [
"[example]"
]
- Observe that the file is not ignored, and still appears in Problems as well as highlighted in the explorer.
Additional Notes
This is on Windows specifically, I don't have a *nix environment handy to test on.
Log File
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue on Windows with the Visual Studio Code Extension and the Lua.workspace.ignoreDir setting, using a folder named [example] containing syntax errors. Trace how ignored directories are matched, then verify that the folder is excluded from Problems and explorer highlighting while ordinary ignored folders continue to work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100