Easycode
Easycode checks out the source code of a meta build, HLOS build or AU in one go, straight from VS Code. Pick a build, pick the projects you need, and Easycode pulls them at the exact revisions of that build and generates a ready-to-open .code-workspace.
Features
- Build ID suggestion - type a meta build ID, HLOS build ID or AU and get matching suggestions as you type.
- Area filter - narrow the project list to Camera, Video, Audio, Display, Graphic, BTFM, CV, WLAN, Sensors, HexLP or FastRPC; the last choice is remembered.
- Project picker - multi-select the projects to check out; projects already checked out are preselected.
- Parallel checkout - several projects are cloned at the same time (
easycode.concurrency, default 4).
- Fast separated workspaces - choose between a common directory and a separate directory per build. For a separate directory, an existing copy of the same project (in the common directory, then in the sibling directories) is cloned locally with hardlinks instead of from the server, then checked out to the right revision.
- SSH or local - save the code on an SSH server (via Remote-SSH) or on your local machine.
- Colored output - the
easycode output channel shows Done. in green and Failed in red.
Use the command easycode: pull code of certain meta build or HLOS build (Ctrl+Alt+E), or the Easycode view in the activity bar.
A link vscode://zhigangw.easycode/pull?build=<build id>&area=<area> (area is optional) starts the same checkout with the build already chosen, so it can be opened from a web page.
Requirements
- VS Code 1.61 or newer.
- The Remote - SSH extension (installed automatically as a dependency).
- Network access to the build information service and the git server that host your builds (usually an internal network).
- On Windows, Git for Windows installed in its default location.
Extension Settings
Run easycode: Do configuration for a guided setup, or edit the settings directly. This extension contributes the following settings:
easycode.isRemote: Pull the code on a remote Linux host via SSH or on the local machine.
easycode.localWorkspace: The local workspace to save code if easycode.isRemote is false.
easycode.sshPrivateKey: SSH private key file path for remote access.
easycode.sshWorkspace: The workspace on the remote Linux host.
easycode.sshHost: The SSH host name.
easycode.sshUser: The SSH user name.
easycode.concurrency: How many projects to clone/pull at the same time (1-8, default 4).
Release Notes
0.4.0
- Open a build from a link:
vscode://zhigangw.easycode/pull?build=<build id>[&area=<area>] starts the checkout with the build id (and area) already chosen, so only the project selection is asked. The build service web page has a "VS Code" button that opens it.
- Check out projects in parallel (new setting
easycode.concurrency, also asked in easycode: Do configuration).
- Faster clones:
git clone --no-checkout, then check out the revision once.
- Separated workspace: reuse an existing copy of the project from the common directory or its sibling directories (local clone), and fetch only the missing delta.
- Input suggestion: trim, debounce (300 ms), ignore stale responses, and keep server-rewritten results (chip name to codename) visible.
- Area selection: sync with the build service web UI (adds BTFM, CV, WLAN, Sensors, HexLP, FastRPC, removes QVR) and remember the last choice.
- Output channel:
Done. is green and Failed is red; progress shows the number of finished projects.
- Requires VS Code 1.61 or newer.
0.2.7
- Add go back button for some quick pick dialogs.
0.2.6
- Change the activitybar icon
- bug fixs
0.2.5
- If there is already a project opened, use current build id as the default build id.
- bug fixs
0.2.3
- Add suggestion build list when input some keyword
- Move the projects to common dir and rename the project name to build id.
- Adjust the checkout commnd to improve speed
0.2.0
Initial release
| |