Run By TypingAn extension for Visual Studio Code that executes NodeJS/TypeScript and shows real-time results while editing files. FeaturesCommand: Enable Run By TypingCreates or opens runByTyping.js in the current workspace and executes it when any open file is edited. Console results are displayed in a separate log window. Command: Enable Run By Typing HTML PreviewCreates or opens runByTyping.js in the current workspace and executes it when any open file is edited. Raw HTML passed to module.runByTypingDone() is displayed in the HTML preview window. Command: Disable Run By TypingDisables executing runByTyping.js on edits. How it worksThe code is executed in a separte process so the editor remains responive. Calling module.runByTypingDone() signals that the process can be reused for the next run so a new process doesn't have to be created on every keystroke. If the code doesn't call module.runByTypingDone() within 500ms and there are new changes pending the process will be recycled to begin the next run. This way every run has a clean global scope and even infinite loops are handled gracefully. SourceLicense |