Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for syntax highlighting and better code completion for anonymous apex #739

Closed
arodriguez-cvent opened this issue Nov 9, 2018 · 3 comments

Comments

@arodriguez-cvent
Copy link

arodriguez-cvent commented Nov 9, 2018

The issue I am facing:

Writing anonymous Apex in the VS Code tempApex.input file does not allow for code completion from the Salesforce Language Support extension. Also there is no syntax highlighting.

The solution I would like:

In the file that is used for execution when the "SFDX: Execute Anonymous Apex from Editor Contents" command is selected, tempApex.input, allow for syntax highlighting and code completion. Ensure that editing this file enables support for the features provided by the Salesforce Language Support extension.

Describe alternatives you've considered

Compile an Apex method to be executed from the tempApex.input file so that code can be written in a .cls file that supports code completion and syntax highlighting.

Additional context

image

@lcampos lcampos added the feature label Nov 9, 2018
@lcampos
Copy link
Contributor

lcampos commented Nov 9, 2018

Hi @arodriguez-cvent thanks for opening this issue. The apex language server currently only supports .cls & .trigger file extensions. In the meantime, you can get syntax highlighting and some basic code completion if you use .apex file extension instead of .input.

@arodriguez-cvent
Copy link
Author

arodriguez-cvent commented Nov 9, 2018

thanks @lcampos I did try changing the extension to .cls however the syntax and highlighting that results in the tempApex file as a result of doing this is not much better than having no syntax whatsoever:

image

@ntotten
Copy link
Contributor

ntotten commented Nov 12, 2018

Duplicate of #441

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants