-
-
Notifications
You must be signed in to change notification settings - Fork 41
Choose an ActionScript SDK for the current workspace in Visual Studio Code
The ActionScript & MXML extension for Visual Studio Code supports a variety of SDKs, including:
Before selecting an SDK that you downloaded from one of the sources above, you must open a folder in Visual Studio Code to use as your project's workspace. To open a folder, go to the File menu → Open... or click Open Folder button in the Explorer view.
Your workspace's currently selected SDK is displayed on the right side of the status bar at the bottom of the window, if you have a .as, .mxml, or asconfig.json file open.
The item in the status bar may display No SDK if you haven't selected an SDK for your workspace, and if the SDK discovery mechanism could not find any SDKs for you automatically.
Open the command palette by going to the View menu and selecting Command Palette....
You may also use the Ctrl+Shift+P keyboard shortcut (or Command+Shift+P on macOS) to open the command palette
Run the ActionScript: Select Workspace SDK command:
A list of available SDKs will be displayed (you may not necessarily see the exact same SDKs listed on your computer, of course):
When you choose one of the SDKs from this list, it will update the as3mxml.sdk.framework
setting in your current workspace. The extension will load the framework from the selected SDK to provide API completion and other code intelligence features for that particular SDK.
Tip: You can also select the workspace SDK by clicking the name of the current SDK in the status bar, if it is currently displayed.
The first time that you open the SDK picker, you may see several SDKs populated automatically from known locations (such as the SDKs installed with Adobe Flash Builder or defined on your PATH
, ROYALE_HOME
, or FLEX_HOME
environment variables). You should also see an option that says Add more SDKs to this list.... You can select this option to activate an dialog that allows you to select any folder from your computer that contains one or more SDKs.
Alternatively, you may open Visual Studio Code's settings and modify the as3mxml.sdk.searchPaths
setting manually:
{
"as3mxml.sdk.searchPaths": [
"/path/to/downloaded/sdks"
]
}
- Adobe AIR (Mobile)
- Adobe AIR (Desktop)
- Adobe Flash Player
- Apache Royale
- HTML and JS (no framework)
- Node.js
- Feathers SDK
- Adobe Animate
- Classic Flex SDK
- Library (SWC)
- Royale Library (SWC)