forcedotcom / soql-language-server Goto Github PK
View Code? Open in Web Editor NEWLicense: BSD 3-Clause "New" or "Revised" License
License: BSD 3-Clause "New" or "Revised" License
Is your feature request related to a problem? Please describe.
Currently, the SOQL language server produces various placeholders during completion:
__SOBJECTS_PLACEHOLDER
__SOBJECT_FIELDS_PLACEHOLDER
__RELATIONSHIPS_PLACEHOLDER
__RELATIONSHIP_FIELDS_PLACEHOLDER
__LITERAL_VALUES_FOR_FIELD
It's then up to the LSP client to resolve the placeholder into the appropriate SObject names, field names, etc. for the users' current org.
This means any editor (besides VS Code) wanting to use the SOQL LSP server has to re-implement this placeholder resolution.
Describe the solution you'd like
Move the action of resolving placeholders from the LSP client into the LSP server.
Describe alternatives you've considered
The alternative is for each editor (client) to re-implement this functionality, which is counter to the point of having an LSP in the first place.
Additional context
I've successfully set up this language server using neovim as a client, but not being able to get completion for SObjects and fields limits its usefulness.
In apex class when I type a comment and want to finish the sentence with a dot it triggers SOQL snippet and when I press enter snippet is inserted.
I am unable to find in the repository where such a snippet is located to change it.
// This is my comment.
After dot is typed snippet suggestion is shown.Adding a dot should not trigger any suggestion as I want to just finish the sentence.
Adding a dot triggers SOQL snippet.
Salesforce Extension Version in VS Code: v52.13.0
SFDX CLI Version: sfdx-cli/7.116.2 win32-x64 node-v14.17.5
OS and version: Windows 10 21H2
Original report at forcedotcom/soql-tooling#258
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.