Skip to content

Implement a "loose mode" to parse an application #167

@marcoroth

Description

@marcoroth

Right now when you parse an application with the Stimulus parser it wants to fully figure out and trace all registered controllers.

Meaning that if can't figure out or can't parse your setup it will not have good support from the parser/LSP - so it's not really going to be super helpful in those cases, it's even more annoying than helping.

In that case, parsing the controllers is and works fine, meaning we still have the parsed results from the controllers - it's just not able to figure out the if a certain controllers was registered.

Which is why it might make sense to implement an option so a user can opt into a "loose parsing mode" that doesn't try to trace the registering of the controllers.

This would mean that you don't get as accurate results, but would mean that you can still use the LSP with somewhat useful tooling instead of it just an LSP that's complaining about all the unregistered controllers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions