Skip to content

Diagnostics ignoreDir not respecting square brackets ([]) in paths #799

@napei

Description

@napei

Describe the bug
Ignoring paths does not seem to work when the paths contain square brackets.

Example path: resources/[folder]/[subfolder]

To Reproduce

  • Set Lua.workspace.ignoreDir to contain the path to the folder
  • I've tried the following
    • resources/[folder]/[subfolder]
    • resources/[[]folder]/[[]subfolder]
    • resources/\[folder\]/\[subfolder\]
    • resources/\\[folder\\]/\\subfolder\\]
    • resources/%5Bfolder%5D/%5Bsubfolder%5D
  • It won't ignore the paths

Expected behavior
The folder should be ignored correctly.

Screenshots
I only noticed this as a problem, as the directory shown below has weird files obsfucated as binary data which of course can't be diagnosed, so what happens is it just sits there constantly trying.
image

Environment (please complete the following information):

  • OS: Windows
  • Is WSL remote? No
  • Client: VSCode

Provide logs
Attached
file_z%3A__FiveM_txData_CFXDefault_833313.base.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    Info NeededMore information is requiredbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions