Recommended Setup
Learn the reccomended setup for use with our external coding features.
Any relevant tool may be used with the remote workplace file system, but we recommend VS Code. Our ScriptRunner Connect web editor is based on it, and with the Natizyskunk SFTP extension, syncing files becomes a seamless process.
Warning: Known bug in SFTP extension
The third-party SFTP extension we recommend has a known bug where the SFTP connection can go stale. If this happens, then any FTP commands you may trigger will get stuck. If this happens to you, try restarting VS Code; this usually resolves the issue.
Demo
Setup
1️⃣ Prepare
2️⃣ Configure SFTP
3️⃣ Sync it up
You'll need to enable the SFTP server for the workspace and generate credentials to complete this step.
4️⃣ Dependencies and IntelliSense
Upload code
VCS setup
If your team uses Git or another VCS:
- Clone/checkout the repo instead of downloading via SFTP, given someone has already pushed the workspace copy to VCS.
-
Add your own
.vscode/sftp.jsonfile (not stored in VCS). - Proceed with the same workflow.
Tips and tricks 😎
Here are a few things to keep in mind:
- The SFTP extension adds an SFTP Explorer tab in VS Code once installed.
- You may need to restart VS Code for it to appear.
- This extension is helpful for exploring the remote copy without downloading files first and allows you to perform various actions by right-clicking on the files.
- To monitor the actions of the SFTP extension, go to the Output tab in the Console and select sftp from the dropdown menu. This is very handy for troubleshooting.
-
Occasionally, the FTP session may get stuck and not automatically reconnect.
- Restarting VS Code can resolve the issue.
- Be aware of the limitations regarding deleting and renaming files.