Coder Social home page Coder Social logo

vscode-xstate-visualizer's Introduction

This extension is no longer under development.

vscode xstate visualizer

Easily view and build state machines with the XState Visualizer from within vscode.

Features

Currently displays the XState Visualizer within a webview for vscode. State machines are interactive so that you can build / test your state machine from within vscode.

XState Visualizer

Requirements

Install the extension from the Marketplace.

Usage

Press cmd + shift + p to open up your command pallet and start typing xstate or visualiser and the extension will be presented as XState: Open Visualiser. Select this option to open the visualiser within vscode.

Install the extension from the Marketplace.

Known Issues

Copy / Pasta and other keyboard shortcuts do not currently work. You can however right click + copy and right click + paste

Logging in does not work from within VSCODE at the minute meaning you cannot access stored machines.

Release Notes

All release notes can be found here: Change Log

vscode-xstate-visualizer's People

Contributors

damiensedgwick avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

vscode-xstate-visualizer's Issues

Cannot find and import local build of React app.

Even though I am building and outputting all JS files to the out directory, I am unable to import the local react app file for use from within a vscode webview.

const reactAppPathOnDisk = vscode.Uri.file(
    path.join(extensionPath, "app.js") // This path is the problem I think??
);

const reactAppUri = reactAppPathOnDisk.with({ scheme: "vscode-resource" });

reactAppUri is then passed through to the html document script tag like so

<script src="${reactAppUri}"></script>

From looking online, once this path is configured correct it should work however I am failing to get it working correctly. Whilst the webview does open, I hit this error:

Error: Unable to resolve non-existing file '/Users/damienk.sedgwick/Development/vscode-xstate-visualizer/app/app.js'

That last error stays no matter the path variations I try, I suspect this is the reason for it also returning a 404 but it could be unrelated.

Excited to use this extension

been using xstate for a while saw this extension.. And I am excited on this extension will turn out. Glad to see this right here.
Best of luck team

Command is not found

Currently in development the commands work as expected however in production, the command isn't found and an error is thrown.

  • Investigate the error being thrown.
  • Write tests for checking commands are there and it is possible to activate them.

How to use the extension

Hi!

Sorry for a stupid question perhaps, but I don't get how to use the extension? How do I get the webview?

Thanks in advance!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.