coc.nvim wrapper for Apex's language server.
-
Language intellisense using Salesforce Apex Language server
- Go To Definition
- Go To References
- Auto-completion
- Rename everywhere
-
Registers IDE commands in Vim/NeoVim enviroment:
:CocCommand
SFDX.Refresh.SObject
- pulls definitions for SObject fields from the default scratch org. You can Go To Definition for SObject fields after this is done. Be sure to set preferred default orgSFDX.Run.Apex.Class.Tests
- run all tests in the current bufferSFDX.Run.Apex.Method.Test
- run the test in the current line (cursor on the method name line)SFDX.Run.Apex.Tests
- run all Apex testsSFDX.Open.Default.Scratch.Org
- open default scratch orgSFDX.Push.Default.Scratch.Org
- push to default scratch orgSFDX.Pull.Default.Scratch.Org
- pull from default scratch orgSFDX.Generate.Password.Default.Scratch.Org
- generate password for default scratch orgSFDX.Display.Password.Default.Scratch.Org
- display password for default scratch orgSFDX.Create.Scratch.Org
- create a new scratch orgSFDX.Create.Apex.Class
- create a new Apex classSFDX.Exec.Anonymous.Apex
- execute apex anonymous apexSFDX.Exec.SOQL.Under.Cursor
- execute SOQL line under cursor- More coming soon
Install by running this command in vim/NeoVim CocInstall coc-apex
.
Add your JAVA_HOME
to the top level of your coc-settings.json
. Confirm the proper path and version for your JAVA_HOME
.
{
"salesforcedx-vscode-apex.java.home": "/Library/Java/JavaVirtualMachines/jdk-11.0.7.jdk/Contents/Home"
}
Pull Requests are welcome. Contributing guidelines comng soon.