Skip to main content

Interacting with Services in vscode

Platform services (called services on this page) are programs that offer stateful capabilities to skills. This guide explains how to install Intrinsic services using the VS Code extension.

Prerequisites

Before attempting this guide you must:

  1. Deploy a solution
  2. Set up your development environment
  3. Connect VS Code to your cloud organization
  4. Create your first service

The extension clearly separates skills and services in the explorer view. Under the services node, you can now see available services and deploy them to a running solution instance.

Install your service

Once your service builds, you are ready to install it into a solution.

important

You must connect to an Organization before attempting to install a service. This includes selecting a target solution.

Selecting a target solution causes new links to appear above the service build rule (the intrinsic_service( line in your BUILD.bazel file). These are:

  • Build, builds a service
  • Install, installs a service

Click Install.

intrinsic_service rule for the service

A terminal window in VS Code will show the progress of installing your service.

Add installed service to a solution

  1. Open the Intrinsic Explorer: Locate and open the Intrinsic explorer in the VS Code sidebar.

    • Navigate to services: Within the explorer, you'll find separate nodes for skills and services. Expand the Services node for your organization and solution.

    Services node in the explorer

  2. Create service instance in the solution.

    • Click on the desired service in the list and select “Add to an instance”.

    Add service to an instance

  3. Enter the name of the service instance

    Add instance name

    • A terminal window in VS Code will show the progress of installing your skill.

    Instance execution in the terminal