Skip to content

Ignoring dir doesn't work when checking diagnostics #2548

Open
@wojciech-kulik

Description

@wojciech-kulik

How are you using the lua-language-server?

NeoVim

Which OS are you using?

MacOS

What is the issue affecting?

Diagnostics/Syntax Checking

Expected Behaviour

When I set workspace.ignoreDir in .luarc.json it should exclude these folders from check when calling:

lua-language-server --check="some/path" --configpath="some/path/.luarc.json"

Actual Behaviour

The tool still prints errors in 3rd party dir.

Reproduction steps

  1. Create .luarc.json and put:
{
  "workspace.library": ["${3rd}/luassert/library"],
  "workspace.ignoreDir": ["${3rd}/luassert/library"],
  "diagnostics.globals": ["vim", "require", "describe", "it", "P"],
  "diagnostics.disable": ["different-requires"]
}
  1. Run:
lua-language-server --check="${DIR_SRC}" --configpath="${PWD}/.luarc.json" --checklevel=Information --logpath="${DIR_OUT}" --loglevel=error

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