Skip to content

Build instructions for vscode extension? #468

Description

@hlovdal

I also get error message "Could not find a machine at the current cursor", without any special characters in the path (just /c/git/xstatetest), and with all extensions except statelyai.stately-vscode disabled (in the workplace).

So I thought maybe I could compile the extension and attempt to debug the issue. However the readme for this repo is a bit thin...


XState: Open Visual Editor fails on vscode 1.86.1 my windows machine but works with vscode 1.86.0 in a on ubuntu VM.

mkdir xstatetest
cd xstatetest
npm init -y
npm install xstate@^4
code .

and create new file test1.ts

import { createMachine } from 'xstate';

const machine = createMachine({
  initial: 'asleep',
  states: {
    asleep: {
      on: {
        'wakes up': {
          target: 'awake',
        },
      },
    },
    awake: {
      on: {
        'falls asleep': {
          target: 'asleep',
        },
      },
    },
  },
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions