Skip to content

Inserting wait/timeout between commands #16

@jagged3dge

Description

@jagged3dge

Is there currently any way to introduce a (preferably adjustable) timeout in between macro commands?
If not, I think it would make a super-useful addition to this brilliant extension!

My use-case:
I am using the jest extension for vscode that allows for automatic running tests within VSCode's extension pane. However, sometimes (not blaming the plugin author) it doesn't seem to work. The only workaround is to stop and start the runner. To make this simpler, I'm using this macros extension to do the restarting automatically. However, sometimes the restartJest macro fails because the jest.stop hasn't completed execution properly before the next command jest.start is called. Inserting a short timeout (of say, 200ms) would be good enough to make the macro work smoothly.

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions