tejanium / vscode-stimulusjs

VS Code Stimulus JS Support
6 stars 4 forks source link

I can't use extension with Encore #201

Open derekqq opened 3 years ago

derekqq commented 3 years ago

The first problem was the lack of support for twig files. Here I issued a merge request: https://github.com/tejanium/vscode-stimulusjs/pull/200, but I also changed the file extension to supported and I get a message that unknown stimulus controller does the plugin require any special structure? image

My structure default from encore

|-- /assets
    |-- controllers
      |-- comments_controller.ts
|-- /templates
    |-- some_template.html.twig / some_template.html
tejanium commented 2 years ago

Hey, thank you for this, and sorry for the lack of support for this extension. About your second problem on why you got the message "Unknown stimulus controller" is because you are using Stimulus v2, and this extension is not yet supports the new Stimulus v2's syntax unfortunately https://github.com/tejanium/vscode-stimulusjs/issues/103