-
-
Notifications
You must be signed in to change notification settings - Fork 39
Extension settings
To configure the ActionScript & MXML extension for Visual Studio Code, open the File menu (On macOS, open the Code application menu) and go to Preferences → Workspace Settings.
Alternatively, you may manually create a file named settings.json inside your workspace's .vscode/ directory (you'll need to create this directory, if it doesn't exist in your workspace yet).
Specifies the folder path of the ActionScript SDK used by the current workspace. Supports the Adobe AIR SDK & Compiler, Apache Royale, the classic Apache Flex or Adobe Flex SDKs, and the Feathers SDK.
{
"as3mxml.sdk.framework": "/path/to/sdk"
}
This setting may also be customized by clicking the name of the currently selected SDK in the status bar to open the SDK picker.
Specifies a folder path containing one or more SDKs to add as custom options in the SDK picker.
{
"as3mxml.sdk.searchPaths": "/path/to/custom/sdks"
}
Alternatively, you can use an array of paths, if you happen store SDKs in more than one location:
{
"as3mxml.sdk.searchPaths": [
"/path/to/custom/sdks",
"/more/custom/sdks"
]
}
Specifies the absolute path of the Adobe Animate executable.
{
"as3mxml.sdk.animate": "/path/to/Animate.exe"
}
(Advanced) Indicates if the extension will use the bundled version of asconfigc or a different version that is installed on the system path. Defaults to true
.
If you have the npm version of asconfigc installed globally, and you'd prefer to use that version of the program instead of the version that is bundled with the Visual Studio Code extension, change the value of this setting to false
.
{
"as3mxml.asconfigc.useBundled": false
}
(Advanced) Specifies whether asconfigc will display more detailed output during builds. Displays command line options passed to tools, like the compiler and the Adobe AIR packager, lists the files copied to the output folder, and more.
{
"as3mxml.asconfigc.verboseOutput": true
}
(Advanced) Specifies extra arguments that asconfigc will pass to the Java virtual machine when running Java programs.
The following example customizes the Java memory heap size for builds:
{
"as3mxml.asconfigc.jvmargs": "-Xms512m -Xmx1024m"
}
(Advanced) Specifies extra arguments that asconfigc will pass to the Java virtual machine when launching the language server (code intelligence).
The following example customizes the Java memory heap size for the code intelligence:
{
"as3mxml.languageServer.jvmargs": "-Xms512m -Xmx1024m"
}
(Advanced) Specifies if requests to the language server will be processed concurrently or in a queue. Disabling concurrency will result in slower code intelligence, but it may be more stable if code intelligence stops working.
The following example disables current request processing by the language server:
{
"as3mxml.languageServer.concurrentRequests": false
}
(Advanced) If the extension cannot find Java automatically, this setting may be used to specify the exact path to the java
executable that the extension should use (Note: it must be an executable, and not directory).
On macOS or Linux, you might specify a path like this:
{
"as3mxml.java.path": "/usr/bin/java"
}
On Windows, you should specify the path to java.exe
(the exact path may be different on your system):
{
"as3mxml.java.path": "c:\\Program Files\\Java\\jre1.8.0_131\\bin\\java.exe"
}
(Advanced) Specifies the folder path of the Apache Royale SDK used internally by the extension to provide code intelligence features. Unless you know what you're doing, you should probably set as3mxml.sdk.framework
instead.
{
"as3mxml.sdk.editor": "/path/to/sdk"
}
If you are working on a project that uses a nightly build of Apache Royale, you may be required to specify the as3mxml.sdk.editor
setting to avoid compiler errors. Sometimes, new versions of Royale add new compiler options that older versions of compiler may not recognize.
Specifies whether to automatically display a prompt to import a project folder from Adobe Flash Builder when asconfig.json is not present.
{
"as3mxml.projectImport.prompt": false
}
Specifies whether the experimental quick compile commands are enabled or not.
{
"as3mxml.quickCompile.enabled": false
}
- 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)