Skip to content

Commit

Permalink
vscode-extension: better detection of when --air bundle is available
Browse files Browse the repository at this point in the history
  • Loading branch information
joshtynjala committed Apr 13, 2023
1 parent 8fcde63 commit c5f3445
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions vscode-extension/src/main/ts/utils/ActionScriptTaskProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,20 @@ export default class ActionScriptTaskProvider
//to determine what to display in the list of tasks.

//captive runtime
if (isWindowsOverrideBundle || isMacOverrideBundle) {
result.push(
this.getTask(
`${TASK_NAME_PACKAGE_DESKTOP_CAPTIVE} - ${taskNameSuffix}`,
jsonURI,
workspaceFolder,
command,
frameworkSDK,
false,
PLATFORM_BUNDLE,
false
)
);
}
if (isWindowsOverrideBundle) {
result.push(
this.getTask(
Expand Down Expand Up @@ -398,25 +412,23 @@ export default class ActionScriptTaskProvider
((isWindows && !isWindowsOverrideBundle) ||
(!isWindows && !isMacOverrideBundle))
) {
let taskName = TASK_NAME_PACKAGE_DESKTOP_CAPTIVE;
let airPlatform = PLATFORM_BUNDLE;
result.push(
this.getTask(
`${taskName} - ${taskNameSuffix}`,
`${TASK_NAME_PACKAGE_DESKTOP_CAPTIVE} - ${taskNameSuffix}`,
jsonURI,
workspaceFolder,
command,
frameworkSDK,
false,
airPlatform,
PLATFORM_BUNDLE,
false
)
);

taskName = isWindows
let taskName = isWindows
? TASK_NAME_PACKAGE_WINDOWS_CAPTIVE
: TASK_NAME_PACKAGE_MAC_CAPTIVE;
airPlatform = isWindows ? PLATFORM_WINDOWS : PLATFORM_MAC;
let airPlatform = isWindows ? PLATFORM_WINDOWS : PLATFORM_MAC;
result.push(
this.getTask(
`${taskName} - ${taskNameSuffix}`,
Expand Down

0 comments on commit c5f3445

Please sign in to comment.