This is the README for the "SFDC Tools" Extension.
This VS Code extension provides a number of tools, including:
P4 Log In
P4 Check Out
P4 Revert
P4 Add
Open File In P4V (only partially implemented, see Known Issues)
Open File In Eclipse
Open File In IntelliJ
Open File In Swarm
Open File In OpenGrok
Run Current Component Test (work in progress, see Known Issues)
Run All Component Tests
Run EswCheck
Visual Studio Code
This extension contributes the following settings:
'sfdctools.p4UserName': 'Your Perforce user name'
'sfdctools.p4Password': 'Your Perforce password'
'sfdctools.filePathToP4V': 'The file path to use for your local instance of Eclipse'
'sfdctools.filePathToEclipse': 'The file path to use for your local instance of Eclipse'
'sfdctools.filePathToIntelliJ': 'The file path to use for your local instance of IntelliJ'
'sfdctools.filePathToBrowser': 'The file path to use for your web browser'
'sfdctools.filePathToDiffApp': 'The file path to the diffing app. Leave blank to use VS Code's built-in differ.'
'sfdctools.localOrgDomain': 'The file path to use for your local Org'
-
Works on OSX. Probably Linux. Windows will need some work (at the very least, the file path separators need to be changed from "/" to "\")
-
Open File In P4V
Ideally, I'd like to click this command, launch P4V with the path to the file, and then have P4V navigate to the file in its Workspace tree. At this time, P4V doesn't support AppleScript and doesn't support a parameter passed to it through the command line. In the mean time, this command does two things:- First it copies the path of the current file to the clipboard.
- Second, it launches P4V.
- First it copies the path of the current file to the clipboard.
Once opened (if not already), simply CMD-V in the input field at the top. Not ideal, but it's something.
- Run Current Component Test
Ideally, I'd like to have the text caret anywhere within a test, and then be able to launch this command. At this time, one needs to select the name of the test and then invoke Run Current Component Test.
Initial release of SFDC Tools