CodeBlocks are currently just containers to display source code, but we want to provide a way for CodeBlocks to optionally be executed by the defaultExecutor. For now we'll use canExecute to determine if it should have a Run button and output section, something like this mock:
Since execute is async, Run should update the output area with "Executing {language}..." until it returns with output.
CodeBlocks are currently just containers to display source code, but we want to provide a way for CodeBlocks to optionally be executed by the
defaultExecutor
. For now we'll usecanExecute
to determine if it should have a Run button and output section, something like this mock:Since
execute
is async, Run should update the output area with "Executing {language}..." until it returns with output.