{"id":28829005,"url":"https://github.com/forcedotcom/lightning-language-server","last_synced_at":"2025-10-29T09:24:07.900Z","repository":{"id":38375223,"uuid":"177680061","full_name":"forcedotcom/lightning-language-server","owner":"forcedotcom","description":"LWC and Aura Language Servers - shipped as part of the Salesforce VSCode Extensions","archived":false,"fork":false,"pushed_at":"2025-03-11T00:51:43.000Z","size":10789,"stargazers_count":33,"open_issues_count":20,"forks_count":48,"subscribers_count":21,"default_branch":"main","last_synced_at":"2025-05-25T23:17:46.593Z","etag":null,"topics":["aura","language-server","lwc","vscode"],"latest_commit_sha":null,"homepage":"https://forcedotcom.github.io/salesforcedx-vscode/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/forcedotcom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-25T23:26:32.000Z","updated_at":"2025-03-11T00:51:47.000Z","dependencies_parsed_at":"2023-02-09T01:45:30.368Z","dependency_job_id":"4a55dd9d-25ef-4b24-b138-cefbe8da4856","html_url":"https://github.com/forcedotcom/lightning-language-server","commit_stats":{"total_commits":681,"total_committers":49,"mean_commits":13.89795918367347,"dds":0.7019089574155654,"last_synced_commit":"fa9394b7cb595dd3a157df64aaa1e37493ab1f08"},"previous_names":[],"tags_count":100,"template":false,"template_full_name":null,"purl":"pkg:github/forcedotcom/lightning-language-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forcedotcom%2Flightning-language-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forcedotcom%2Flightning-language-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forcedotcom%2Flightning-language-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forcedotcom%2Flightning-language-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/forcedotcom","download_url":"https://codeload.github.com/forcedotcom/lightning-language-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forcedotcom%2Flightning-language-server/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260690921,"owners_count":23047102,"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":["aura","language-server","lwc","vscode"],"created_at":"2025-06-19T05:11:21.003Z","updated_at":"2025-10-29T09:24:07.882Z","avatar_url":"https://github.com/forcedotcom.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)\u003cbr/\u003e\r\n[![npm (scoped)](https://img.shields.io/npm/v/@salesforce/lwc-language-server?label=lwc-language-server\u0026logo=npm)](https://www.npmjs.com/package/@salesforce/lwc-language-server)\r\n[![npm (scoped)](https://img.shields.io/npm/v/@salesforce/aura-language-server?label=aura-language-server\u0026logo=npm)](https://www.npmjs.com/package/@salesforce/aura-language-server)\r\n[![npm (scoped)](https://img.shields.io/npm/v/@salesforce/lightning-lsp-common?label=lightning-lsp-common\u0026logo=npm)](https://www.npmjs.com/package/@salesforce/lightning-lsp-common)\r\n[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)\r\n\r\n# Lightning Language Servers\r\n\r\nMono repo for the LWC and Aura Language Services that are used in the [Salesforce Extensions for VS Code](https://github.com/forcedotcom/salesforcedx-vscode).\r\n\r\n### Issues \u0026 Features\r\n\r\nOpen issues and feature requests on the [Salesforce VSCode Extensions Repository](https://github.com/forcedotcom/salesforcedx-vscode/issues/new/choose).\r\n\r\n## Setup Development Environment\r\n\r\n### Pre-requisites\r\n\r\nFollow the pre-requisites here:\r\nhttps://github.com/forcedotcom/salesforcedx-vscode/blob/develop/CONTRIBUTING.md\r\n\r\n### Clone this repository and Salesforce VSCode Extensions\r\n\r\n```\r\ngit clone git@github.com:forcedotcom/lightning-language-server.git\r\ngit clone git@github.com:forcedotcom/salesforcedx-vscode.git\r\n```\r\n\r\nNote: These projects need to be cloned into the same parent directory\r\n\r\n### Setup lightning-language-server repository\r\n\r\n```\r\ncd lightning-language-server\r\nyarn install\r\nyarn link-lsp\r\n```\r\n\r\n### Setup Salesforce VSCode Extensions repository\r\n\r\n```\r\ncd ../salesforcedx-vscode\r\nnpm install\r\nnpm run link-lsp\r\nnpm run compile\r\n```\r\n\r\n### Open both repositories in a vscode workspace\r\nNote: complete the install process before this step, or you may receive errors about \"Property ‘objType’ does not exist on type ‘Node’.\" from the Tern Server. This is due to the node_modules being improperly installed at a level above the lightning-language-server. If this does happen to you, simply remove the extra node_modules directory.\r\n\r\n```\r\ncd ../lightning-language-server\r\ncode ./vscode-workspaces/multiroot-simple.code-workspace # or\r\ncode ./vscode-workspaces/multiroot-flat.code-workspace\r\n```\r\n\r\nThe \"simple\" workspace will effectively show two main nodes in the Explorer, while \"flat\" will show each package separately.\r\n\r\nSimple:\r\n\r\n\u003cimg src=\"imgs/workspace-simple.png\" width=\"300\"\u003e\r\n\r\nFlat:\r\n\r\n\u003cimg src=\"imgs/workspace-flat.png\" width=\"300\"\u003e\r\n\r\n### Debugging with VSCode\r\n\r\nRun 'Launch DX - Aura \u0026 LWC' from the VSCode debug view (its the last one in that long list).\r\n\r\n### Recompile on change\r\n\r\n```\r\ncd ../lightning-language-server\r\nyarn watch\r\ncd ../salesforcedx-vscode\r\nnpm run watch\r\n```\r\n\r\nNote: You need to restart vscode each time you make changes to the language server or the lightning vscode extensions.\r\nEasiest way to do this is to kill the vscode client and hit F5 to relaunch your debugger.\r\n\r\n## Publishing to NPM\r\nWhen a commit is merged to main, we will automatically create the github release, and then publish the changes to npm using our Github Actions\r\n\r\n### On-Demand publish to NPM\r\nNavigate to the `Actions` tab in the repository\r\n1. Under `Workflows` on the left side, select `Manual Release`.\r\n1. Select `Run Workflow`, and ensure the newest version is published to npm once the workflow completes.\r\n1. Any failures will notify the pdt release channel internally.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforcedotcom%2Flightning-language-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fforcedotcom%2Flightning-language-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforcedotcom%2Flightning-language-server/lists"}