You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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.
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:
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
The text was updated successfully, but these errors were encountered: