Skip to content

Bugfix: Prevent code run from stopping if workbench.action.terminal.clear can't be executed.#13

Open
seltzered wants to merge 1 commit intoJeepShen:masterfrom
seltzered:remove-clear
Open

Bugfix: Prevent code run from stopping if workbench.action.terminal.clear can't be executed.#13
seltzered wants to merge 1 commit intoJeepShen:masterfrom
seltzered:remove-clear

Conversation

@seltzered
Copy link
Copy Markdown

I've been testing vscode-markdown-code-runner in other environments such as Eclipse Theia, and noticed it can sometimes not work and generate an error along the lines of "'workbench.action.terminal.clear' is not registered", which ends up making the 'code run' not happen.

This workaround wraps the line in a try/catch block so the code run will still happens in case workbench.action.terminal.clear can't be executed.

It can sometimes not work in some environments (e.g. Eclipse Theia),
but that shouldn't make 'code run' not happen.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant