Note
This page only describes the overview of the extension. For more details, see the documentation in the marketplace.
This page only describes the overview of the extension. For more details, see the documentation in the marketplace.
webOS OSE provides an extension for Microsoft Visual Studio Code (VS Code), webOS Studio, to help developers easily develop webOS OSE apps/services (web apps, Enact apps, JS services).
webOS Studio provides the following key features:
To install the extension, open VS Code and do the following:
Interface of the webOS Studio extension
The extension is designed on the basis of the typical workflow followed in webOS OSE app/service development. See the documentation in the marketplace.
A. Supported types are as follows:
Type | Description |
---|---|
Basic Web App | Creates a sample HTML "hello world" app that has a standard webOS OSE file system. |
Hosted Web App | Creates a sample HTML app with an example to show some external page in-app with standard webOS OSE file system. |
Web App Info | A dummy web app, which contains only appinfo file to use with any already developed HTML app. |
Basic Enact App | Creates an enact Sample app as per selected template. |
JS Service | A simple JS service with a service file. |
JS Service Info | A dummy service info directory, which is used for reference of standard service information. |
A.This feature adds webos-service library to your project. The webos-service library is to call LS2 APIs in the app/service. But we strongly recommend using WebOSServiceBridge API instead of webos-service library.
A. By default, emulator
is added in the KNOWN DEVICE view. This emulator is running on the local system. If you an emulator instance is not already set up, go to the EMULATOR MANAGER view and add the emulator instance.
A. Workspace path and name should not contain any escape or special characters, it can trigger errors on add, package, install operations.
A. A list of the errors:
Error | Description |
---|---|
ERROR! Failed to get the device list. | Some dependent packages are not available on the local system. To resolve this issue, install the packages either manually or by clicking Yes when prompted (if you previously closed the prompt without installing, click the refresh button in the KNOWN DEVICE view to get prompted again). |
ERROR! Failed to list the applications installed on <device> | The device is not running. |
ERROR! Failed to list the applications running on <device> | The device is not running. |
ERROR! Please check IP address or port of <device> | The device is not reachable. |
ERROR! Unable to find the Virtual Box | Update the environment path variable to point to the VirtualBox installation directory. |
ERROR! Packaging App Failed. Details As follows: <errMsg> | Failed to package the app due to one of the following:
|
Contents