Skip to content

Disabling LSP for specific file extensions #4957

Closed

Description

@eislambey

Question

In Laravel projects, template files (Blade files) typically have the .blade.php suffix. However, the PHP LSP automatically detects these files and can cause incorrect behavior or issues within them.

Is there a way to disable the LSP specifically for files that have the .blade.php suffix?

Activity

  1. self-assigned this
    on Dec 2, 2025
  2. rekram1-node commented on Dec 2, 2025

    @rekram1-node
    Contributor

    yeah we need to have something for that....

  3. ckreiling commented on Feb 7, 2026

    @ckreiling

    Similarly when developing Helm charts the template files are associated to yaml-ls which barfs on the templates, which are generally not valid yaml. Not a huge deal but it does add context bloat (not sure how much tbh) and can throw off smaller models like Claude Haiku.

    To my knowledge there isn't a standard extension for Helm templates though, like there is for Blade files. Maybe reasoning about it more like an ignore file would be nice (e.g. being able to exclude **/templates/** from the yaml-ls LSP)

  4. github-actions commented on Apr 9, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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