Coder Social home page Coder Social logo

soql-language-server's People

Contributors

code0100fun avatar dehru avatar dependabot[bot] avatar dobladez avatar github-actions[bot] avatar jgellin-sf avatar jonnyhork avatar lisandrofernandezsf avatar svc-scm avatar tmock12 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

soql-language-server's Issues

Resolve placeholders in server instead of in client

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.

Dot (.) is triggering snippet for SOQL.

Summary

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.

Steps To Reproduce:

  1. Open apex class
  2. Type // This is my comment. After dot is typed snippet suggestion is shown.

2021-09-09_09h20_31

  1. Press enter as you want to go to a new line. It inserts a snippet and suggests objects to choose from. Which is annoying behavior.

2021-09-09_09h22_17

Expected result

Adding a dot should not trigger any suggestion as I want to just finish the sentence.

Actual result

Adding a dot triggers SOQL snippet.

Additional information

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.