Hi Jim, I recommend you to consult previous posts in this forum and in the @dev
list, you will find information that will be very useful.
Here are some examples:
-------------------------------------------------------------------------------------------------------------------------------------------------------
<< settings.json>> I only use it when I need to use a SDK other than the SDK
configured in the system:
-------------------------------------------------------------------------------------------------------------------------------------------------------
{
"as3mxml.sdk.framework":
"d:\\Desarrollo_Royale\\Proyectos\\Tests\\Royale-git\\royale-asjs"
}
-------------------------------------------------------------------------------------------------------------------------------------------------------
<< asconfig.json >>
-------------------------------------------------------------------------------------------------------------------------------------------------------
https://github.com/BowlerHatLLC/vscode-as3mxml/wiki/asconfig.json
-------------------------------------------------------------------------------------------------------------------------------------------------------
These are some options you could use in your << tasks.json >> file:
-------------------------------------------------------------------------------------------------------------------------------------------------------
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Build Debug with AS3 Extension - Debug",
"type": "actionscript",
"debug": true,
"problemMatcher": [
"$nextgenas_nomatch"
],
"group": "build"
},
{
"label": "Build Release with AS3 Extension",
"type": "actionscript",
"debug": false,
"problemMatcher": [
"$nextgenas_nomatch"
],
"group": "build"
},
{
"label": "Build with asconfigc",
"type": "shell",
"command": "asconfigc",
"args": [
"--sdk=${config:as3mxml.sdk.framework}"
],
"presentation": {
"echo": true,
"reveal": "always",
"focus": true,
"panel": "dedicated"
},
"problemMatcher": [
"$nextgenas_nomatch"
],
"group": "build"
},
{
"label": "Build with Maven - debug SDK",
"type": "shell",
"command": "mvn",
"args": [
"clean",
"install",
"-Droyalelib=${env:ROYALE_HOME}\\frameworks",
"-DskipTests"
],
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
-------------------------------------------------------------------------------------------------------------------------------------------------------
<< launch.json >>
-------------------------------------------------------------------------------------------------------------------------------------------------------
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch Chrome (localhost debug)",
"type": "chrome",
"request": "launch",
"sourceMaps": true,
"url": "http://localhost:8080/xxxx/index.html",
"webRoot": "${workspaceFolder}/target/javascript/bin/js-debug"
},
{
"name": "Launch File - Royal Company (Debug version)",
"type": "chrome",
"request": "launch",
"sourceMaps": true,
"url":
"file:///${workspaceRoot}/target/javascript/bin/js-debug/index.html",
"webRoot": "${workspaceRoot}/target/javascript/bin/js-debug"
},
{
"name": "Launch File Allow File Access - Royal Company (Debug
version)",
"type": "chrome",
"request": "launch",
"sourceMaps": true,
//"runtimeExecutable": "/Applications/Brave
Browser.app/Contents/MacOS/Brave Browser",
"runtimeArgs": ["--allow-file-access-from-files",
"--auto-ssl-client-auth"],
"url":
"file:///${workspaceRoot}/target/javascript/bin/js-debug/index.html",
"webRoot": "${workspaceRoot}/target/javascript/bin/js-debug"
},
{
"name": "Launch File Allow File Access - Royal Release",
"type": "chrome",
"request": "launch",
//"runtimeExecutable": "/Applications/Brave
Browser.app/Contents/MacOS/Brave Browser",
"runtimeArgs": [
"--allow-file-access-from-files",
"--auto-ssl-client-auth"
],
"url":
"file:///${workspaceRoot}/target/javascript/bin/js-release/index.html",
"webRoot": "${workspaceRoot}/target/javascript/bin/js-release"
}
]
}
Hiedra
-----Mensaje original-----
De: Jim McNamara <[email protected]>
Enviado el: sábado, 4 de junio de 2022 2:58
Para: [email protected]
Asunto: help setting up visual studio code to work with actionscfipt
Hi all-
If anyone can share their .asconfig.js, tasks.json, and settings.json that has
actionscript wotking with visual studio code please do.
I can't build I tried installing bowler plugins for actionscript and they
install, but I don't know how to compile my code from within visual studio code.
thanks for any help,
roboloki