Note, this is a completely different version. By default, this extension only support run javascript file. You can configure it to support other languages:
{
"terminalCodeRunner.execMap": {
// default
"javascript": "node ${relativeFile}",
// support run typescript file
// note: you need to install tsx by yourself, like npm install -g tsx
"typescript": "tsx ${relativeFile}"
}
}
You can also configure the executed command by globs:
{
"terminalCodeRunner.executorMapByGlob": {
// ${relativeFile} is VSCode variables, will fallback to file absolute path if no workspace opened
// check all variables here: https://code.visualstudio.com/docs/editor/variables-reference
"**/*.scpt": "osascript ${relativeFile}"
}
}