Skip to content

workspace.library does not honor workspace.ignoreDirΒ #2939

@nyarthan

Description

@nyarthan

How are you using the lua-language-server?

NeoVim

Which OS are you using?

MacOS

What is the issue affecting?

Other

Expected Behaviour

I think it would make sense to also honor the workspace.ignoreDir setting when including libraries via workspace.library.

My use case is probably rather niche but it pretty much breaks the indexing:
I have a local library that I want to include via workspace.library, at the root of the library is a directory .direnv which includes symlinks to nix derivations (which intern include more than 100000 lua files)

So I would expect a configuration like

"workspace": {
  "ignoreDir": [".direnv"],
  "library": "path-to-lib"
}

to not index files inside <path-to-lib>/.direnv

Actual Behaviour

Every file inside the library path is indexed

Reproduction steps

Follow example from above

Additional Notes

No response

Log File

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions