{"id":13880660,"url":"https://github.com/marcoroth/stimulus-lsp","last_synced_at":"2025-04-08T04:13:14.963Z","repository":{"id":198498909,"uuid":"379537090","full_name":"marcoroth/stimulus-lsp","owner":"marcoroth","description":"Intelligent Stimulus tooling for Visual Studio Code, Neovim, and more!","archived":false,"fork":false,"pushed_at":"2025-04-01T00:18:34.000Z","size":2828,"stargazers_count":251,"open_issues_count":90,"forks_count":13,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-01T03:35:29.416Z","etag":null,"topics":["hacktoberfest","hotwire","language-server","language-server-protocol","lsp","stimulus","stimulusjs"],"latest_commit_sha":null,"homepage":"https://hotwire.io/ecosystem/tooling/stimulus-lsp","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marcoroth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"marcoroth"}},"created_at":"2021-06-23T08:44:22.000Z","updated_at":"2025-03-24T21:34:52.000Z","dependencies_parsed_at":"2023-10-20T07:02:13.501Z","dependency_job_id":"f1cb9057-d1de-446c-b861-505761b091bf","html_url":"https://github.com/marcoroth/stimulus-lsp","commit_stats":{"total_commits":397,"total_committers":8,"mean_commits":49.625,"dds":0.4030226700251889,"last_synced_commit":"7688b5b8192048bd9ddcaf9576381000f12f7737"},"previous_names":["marcoroth/stimulus-lsp"],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcoroth%2Fstimulus-lsp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcoroth%2Fstimulus-lsp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcoroth%2Fstimulus-lsp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcoroth%2Fstimulus-lsp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcoroth","download_url":"https://codeload.github.com/marcoroth/stimulus-lsp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247773719,"owners_count":20993639,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hacktoberfest","hotwire","language-server","language-server-protocol","lsp","stimulus","stimulusjs"],"created_at":"2024-08-06T08:03:21.539Z","updated_at":"2025-04-08T04:13:14.941Z","avatar_url":"https://github.com/marcoroth.png","language":"TypeScript","funding_links":["https://github.com/sponsors/marcoroth"],"categories":["TypeScript","**Awesome Hotwire** [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome)"],"sub_categories":["Stimulus"],"readme":"# Stimulus LSP\n\nIntelligent Stimulus tooling for Visual Studio Code\n\n\n![](/assets/stimulus-lsp.png)\n\n## Functionality\n\nCurrently, this Language Server only works for HTML, though its utility extends to various file types such as ERB, PHP, or Blade files.\n\n### Completions\n\n* Data Attributes\n* Completions for controller identifiers\n* Completions for controller actions\n* Completions for controller targets\n* Completions for controller values\n* Completions for controller classes\n\n### Diagnostics\n\n#### HTML Files\n\n* Missing controllers (`stimulus.controller.invalid`)\n* Missing controller actions (`stimulus.action.invalid`)\n* Missing controller targets (`stimulus.controller.target.missing`)\n* Missing controller values (`stimulus.controller.value.missing`)\n* Invalid action descriptors (`stimulus.action.invalid`)\n* Data attributes format mismatches (`stimulus.attribute.mismatch`)\n* Controller values type mismatches (`stimulus.controller.value.type_mismatch`)\n\n#### JavaScript Files/Stimulus Controller Files\n\n* Controller value definition default value type mismatch (`stimulus.controller.value_definition.default_value.type_mismatch`)\n* Unknown value definition type (`stimulus.controller.value_definition.unknown_type`)\n* Controller parsing errors (`stimulus.controller.parse_error`)\n* Import from deprecated packages (`stimulus.package.deprecated.import`)\n\n### Quick-Fixes\n\n* Create a controller with the given identifier (`stimulus.controller.create`)\n* Update controller identifier with did you mean suggestion (`stimulus.controller.update`)\n* Register a controller definition from your project or a NPM package (`stimulus.controller.register`)\n* Update controller action name with did you mean suggestion (`stimulus.controller.action.update`)\n* Implement a missing controller action on controller (`stimulus.controller.action.implement`)\n* Create a default config file at `.stimulus-lsp/config.json` (`stimulus.config.create`)\n* Ignore diagnostics for a HTML attribute by adding it to the `ignoredAttributes` config (`stimulus.config.attribute.ignore`)\n* Ignore diagnostics for a Stimulus controller identifier by adding it to the `ignoredControllerIdentifiers` config (`stimulus.config.controller.ignore`)\n\n## Structure\n\n```\n.\n├── package.json // The extension manifest.\n|\n├── client // Language Client\n│   └── src\n│      └── extension.ts // Language Client entry point\n|\n└── server // Language Server\n    └── src\n        └── server.ts // Language Server entry point\n```\n\n## Running the extension locally\n\n- Run `yarn install` in this folder. This installs all necessary npm modules in both the client and server folder\n- Open VS Code on this folder.\n- Press Ctrl+Shift+B to compile the client and server.\n- Switch to the Debug viewlet.\n- Select `Launch Client` from the drop down.\n- Run the launch config.\n- If you want to debug the server as well use the launch configuration `Attach to Server`\n- In the [Extension Development Host] instance of VSCode, open a HTML file.\n  - Type `\u003cdiv data-controller=\"|\"\u003e`, place your cursor where the `|` is, hit Ctrl+Space and you should see completions.\n\n## Install instructions: Neovim\n\n[Install instructions can be found at nvim-lspconfig](https://github.com/neovim/nvim-lspconfig/blob/master/doc/configs.md#stimulus_ls)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcoroth%2Fstimulus-lsp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcoroth%2Fstimulus-lsp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcoroth%2Fstimulus-lsp/lists"}