Skip to content

phpcs Reports Errors When Opening Git Diffs (and Also in Random Cases) #200

@neurolag

Description

@neurolag

phpcs reports following error:

phpcs: Request workspace/configuration failed with message: Unable to locate phpcs. Please add phpcs to your global path or use composer dependency manager to install it in your project locally.

What's quite strange is that this error not only occurs when opening a git diff view (as this opens a file with a git:/{path}-uri) but also in random cases. For some files, vscode seems to open a git:/{path}-uri without even ever opening a git diff view.

This, again, triggers the error mentioned before.

I think it might be a good idea to completely ignore (or at least provide an option to do so) documents with a git:/{path}-uri.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions