Giter VIP home page Giter VIP logo

Comments (5)

mattpocock avatar mattpocock commented on July 21, 2024 3

Thank you @slowselfip! My plans are to add a configuration option to VSCode that would let you choose between:

Typegen running on throttle (allows for very quick TS updates, but CPU intensive)
Typegen running on save (TS updates when you save the file, similar to if you were running a CLI)

from xstate-tools.

with-heart avatar with-heart commented on July 21, 2024 2

Typegen running on save (TS updates when you save the file, similar to if you were running a CLI)

This would be perfect! Having jest --watch re-run the tests every time I type a few letters is not ideal 😁

from xstate-tools.

raghavraman avatar raghavraman commented on July 21, 2024 1

👋 Any updates on this. Would greatly benefit from the save the file option. Thanks

from xstate-tools.

Andarist avatar Andarist commented on July 21, 2024

I believe that this is being fixed by #220 because with the changes in that PR we only update the typegen files when their output changes.

from xstate-tools.

danawoodman avatar danawoodman commented on July 21, 2024

Using the latest version of the extension all bug freezes my machine because of all the Typegen calls triggering many HMR reloads with Vite, is there a plan to add this option to only apply on save? Is there another workaround to prevent major VSCode slowdowns?

EDIT: I think part of the issue might be because I had both the CLI running and the extension, which I'm assuming they stepped on each other's toes?

EDIT 2: Even with the CLI not running the auto-saving is triggering many reloads on any edit. An option to change this to "on save" only would be very much appreciated.

from xstate-tools.

Related Issues (20)

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.