Lark VSCode Extension
This extension is officially supported by the Lark open platform, providing functions such as creating, importing, previewing, uploading, and debugging Gadget.
Lark: Switch Account - Login to the Lark open platform and switch to the current login account
Click [Account Area] in the bottom status bar, the account platform selection pop-up window will show on the top of vscode. Click to select the platform, the browser will automatically open the authorized login page. The bottom status bar will display the corresponding account information after authorization succeeded.
Logout of the current account, the bottom status bar will display [No Account] after logout succeeded.
Create new project
Click the button or use the [Lark: Create new application] command to enter the Create Project page.
Preview on real device
Tips: [Preview PC App Center] requires Lark version>=3.11.0
Click the Preview button or use the [Lark: Preview] command and click to select any preview mode to preview on real device.
[Preview Mobile] will open the following QR code interface, scan the code to preview. And also provide a copy QR code address button for developers to use directly.
Modes other than [Preview Mobile] will send a message card to the Lark application, and click the message card to preview Gadget.
Upload and publish
Click the upload button or use the [Lark: Upload] command. The upload information input box will pop up at the top. Click the confirmation step after completing the step by step. After success, click the [Go to Developer] pop-up box in the lower right corner to go to the open platform for publishing.
Code hints and completions
The extension provides hints and completions for Gadget editor.
Set the build directory
The purpose of setting the build directory is to tell the compiler where the root directory of the Gadget project is, in order to compile correctly.
The extension sets the opened directory to the build directory of the Gadget project by default. The setup is successful as shown below
Output development stage Gadget log
Realtime preview on device
Tips: requires Lark version>=3.12.0