Use the Application Accelerator Visual Studio Code extension

This topic describes how to use the Application Accelerator Visual Studio Code extension to explore and generate projects from the defined accelerators in Tanzu Application Platform (commonly known as TAP) using VS Code.

The Application Accelerator Visual Studio Code extension lets you explore and generate projects from the defined accelerators in Tanzu Application Platform using VS Code.

Dependencies

Installation

Use the following steps to install the Application Accelerator Visual Studio extension:

  1. Sign in to VMware Tanzu Network and download the “Tanzu App Accelerator Extension for Visual Studio Code” file from the product page for VMware Tanzu Application Platform.

  2. Open VS Code.

    Option 1:

    1. From the Command Palette (cmd + shift + P), run “Extensions: Install from VSIX…”.

    2. Select the extension file tanzu-app-accelerator-<EXTENSION_VERSION>.vsix.

      The Command palette is open and Extensions: Install from VSIX appears in the drop-down menu.

    Option 2:

    1. Select the Extensions tab: Shows the extensions tab icon.

    2. Select Install from VSIX… from the overflow menu.

      The VS Code interface extensions page overflow menu is open with Install from VSIX... highlighted.

Configure the extension

Before using the extension, you need follow the next steps:

  1. Go to VS Code settings - click Code > Preferences > Settings > Extensions > Tanzu App Accelerator.

  2. Look for the setting Tap Gui Url.

  3. Add the Tanzu Application Platform GUI URL.

    The Server Configure Setting page is open with the acc server URL highlighted.

    An example URL: https://tap-gui.myclusterdomain.myorg.com. If you have access to the Tanzu Application Platform cluster that is running the Tanzu Application Platform GUI, you can run the following command to determine the fully-qualified domain name:

    kubectl get httpproxy tap-gui -n tap-gui
    

Using the extension

After adding the Tap Gui Url you can explore the defined accelerators accessing the Application Accelerater extension icon:

The explorer panel is open, the TIMELINE drop-down is selected, and the Demo Types icon is highlighted.

Choose any of the defined accelerators, fill the options and click the generate project

The accelerator tab is open to the Hello Fun accelerator form. The text boxes display example text and the Generate Project button is highlighted.

Retrieving the URL for the Tanzu Application Platform GUI

If you have access to the Tanzu Application Platform cluster that is running the Tanzu Application Platform GUI, you can run the following command to determine the fully-qualified domain name:

kubectl get httpproxy tap-gui -n tap-gui

With an expected response of something similar to:

NAME      FQDN                                      TLS SECRET     STATUS   STATUS DESCRIPTION
tap-gui   tap-gui.tap.tapdemo.myorg.com             tap-gui-cert   valid    Valid HTTPProxy

Known Issues

In v0.1.5 of the Application Accelerator extension for VS Code, if an accelerator with custom types is used and the custom type form contains checkboxes, re-prioritizing the custom types entries cause the data to not properly reorder. This is a known issue and is resolved in an upcoming release.

check-circle-line exclamation-circle-line close-line
Scroll to top icon