Giter Club home page Giter Club logo

Comments (5)

Malacath-92 avatar Malacath-92 commented on September 27, 2024 1

While it's very obvious that I haven't had any time or energy to work on this I'm still perfectly happy to merge PRs. However that's somewhat pointless as I don't have the ability to deploy a patch to the extension. I'll try to get in touch with @stevensona to see if we can make it possible for both of us to deploy.

from shader-toy.

Malacath-92 avatar Malacath-92 commented on September 27, 2024

I thought this should already be supported, e.g. the paused state should be maintained through reloads if the setting Reset State On Change Editor is disable. I can take a closer look to see if that currently works or not.

from shader-toy.

Skagoo avatar Skagoo commented on September 27, 2024

I can confirm that the following settings still results in the shader not being paused after updating. Is this a bug or a missing feature? Will any of the maintainers still go through the effort of merging a PR to address this issue?

{
        "shader-toy.resetStateOnChangeEditor": false,
	"shader-toy.pauseWholeRender": true
}

from shader-toy.

mzschwartz5 avatar mzschwartz5 commented on September 27, 2024

I've also noticed this issue. Here's my personal workaround.

  1. Install the multicommand extension
  2. In your vscode keybindings file, define the following:
[{
    "key": "alt+enter",
    "command": "extension.multiCommand.execute",
    "args": {
        "sequence": [
            "workbench.action.files.save",
            "shader-toy.showGlslPreview",
            "shader-toy.pauseGlslPreviews"
        ]
    }
}]

Now, when you press alt + enter, the code will save, preview in the shader-toy extension, and pause. I also disabled these shader-toy settings:

    "shader-toy.reloadAutomatically": false,
    "shader-toy.reloadOnEditText": false,
    "shader-toy.resetStateOnChangeEditor": false,

from shader-toy.

Skagoo avatar Skagoo commented on September 27, 2024

Since I solely use this for passion projects I'm satisfied with @mzschwartz5 's workaround. Thanks a lot

from shader-toy.

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.