https://github.com/forcedotcom/soql-language-server
https://github.com/forcedotcom/soql-language-server
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/forcedotcom/soql-language-server
- Owner: forcedotcom
- License: bsd-3-clause
- Created: 2021-02-01T19:04:56.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-07-19T01:20:21.000Z (almost 3 years ago)
- Last Synced: 2025-05-19T01:48:40.264Z (about 1 year ago)
- Language: TypeScript
- Size: 2.21 MB
- Stars: 13
- Watchers: 8
- Forks: 6
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: docs/CODEOWNERS
- Security: SECURITY.md
Awesome Lists containing this project
README
# SOQL Language Server
Provides SOQL language capabilities for text editors, including code-completion and errors checks.
This package implements the server-side of the LSP protocol.
[Salesforce's SOQL VS Code extension](https://marketplace.visualstudio.com/items?itemName=salesforce.salesforcedx-vscode-soql), which lives in repo [salesforcedx-vscode](https://github.com/forcedotcom/salesforcedx-vscode), includes an LSP client implementation for this server.
## Development
If you are interested in contributing, please take a look at the [CONTRIBUTING](CONTRIBUTING.md) guide.
- `yarn` from the top-level directory to pull all dependencies
- `yarn build` to build
- `yarn run lint` to run static checks with eslint
- `yarn run test` to run automated tests
This package is used by VS Code extension `salesforcedx-vscode-soql` which lives in repo [salesforcedx-vscode](https://github.com/forcedotcom/salesforcedx-vscode).
During development, you can work with a local copy of the `salesforcedx-vscode` repo, and configure it to use your local build from your `soql-language-server` repo using yarn/npm links. Example:
```
# Make global links available
cd soql-language-server
yarn link
# Link to them from the VS Code SOQL extension package
cd salesforcedx-vscode
npm install
cd ./packages/salesforcedx-vscode-soql
npm link @salesforce/soql-language-server
```
With that in place, you can make changes to `soql-language-server`, build, and then relaunch the `salesforcedx-vscode` extensions from VS Code to see the changes.
### Debug Jest Test
You can debug Jest test for an individual package by running the corresponding launch configuration in VS Codes _RUN_ panel.
## Resources
- Doc: [SOQL and SOSL Reference](https://developer.salesforce.com/docs/atlas.en-us.soql_sosl.meta/soql_sosl/sforce_api_calls_soql_sosl_intro.htm)
- Doc: [SOQL and SOSL Queries](https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/langCon_apex_SOQL.htm)
- Trailhead: [Get Started with SOQL Queries](https://trailhead.salesforce.com/content/learn/modules/soql-for-admins/get-started-with-soql-queries)