The Sufia Client VS Code extension provides a set of commands for managing interactions with the Sufia system. It allows you to push and pull code, set user credentials, and handle Sufia-specific operations directly from VS Code.
Features
Push Code to Server: Push your code to the Sufia server with a specific group and transaction code.
Pull Code from Server: Pull code from the Sufia server using group and transaction codes.
Pull All Code: Pull all code from the Sufia server.
Pull All Overwrite: Pull all code from the Sufia server and overwrite the local code.
Set User: Set up user credentials and server URL.
Pull Existing Code: Pull existing code from Sufia with an option to override.
Installation
Open VS Code.
Go to the Extensions view by clicking on the Extensions icon in the Activity Bar on the side of the window or pressing Ctrl+Shift+X.
Search for "Sufia Client" and click "Install".
Commands
SUFIA: Set User
Description: Prompts for the server URL and username to set up user credentials.
SUFIA: Push to Server
Description: Pushes the currently active file's code to the Sufia server.
SUFIA: Pull All
Description: Pulls all code from the Sufia server.
SUFIA: Pull All Overwrite
Description: Pulls all code from the Sufia server and overwrites the local code.
SUFIA: Pull Code from Sufia
Description: Pulls code from the Sufia server using specified group and transaction codes.
SUFIA: Pull Existing Code from Sufia
Description: Pulls existing code from the Sufia server with an option to override.
Usage
Click on the Sufia Client icon in the Activity Bar to access the commands.
Or Use the Following Shortcuts:
Set User:
Open the Command Palette with Ctrl+Shift+P.
Type SUFIA: Set User and press Enter.
Enter the required URL and username when prompted.
Push Code to Server:
Open the file you want to push in the editor.
Open the Command Palette with Ctrl+Shift+P.
Type SUFIA: Push Code to Sufia and press Enter.
Pull All Code:
Open the Command Palette with Ctrl+Shift+P.
Type SUFIA: Pull All and press Enter.
Pull Code from Sufia:
Open the Command Palette with Ctrl+Shift+P.
Type SUFIA: Pull Code from Sufia and press Enter.
Enter the group code and transaction code when prompted.
Pull Existing Code from Sufia:
Open the file you want to pull code into.
Open the Command Palette with Ctrl+Shift+P.
Type SUFIA: Pull Existing Code from Sufia and press Enter.