vscode-code-runner
vscode-code-runner copied to clipboard
Add '$workspaceName' placeholder
This pull request adds $workspaceName placeholder that has to be replaced by the name of the folder opened in VS Code. If no folder is opened, it will be replaced with the directory name of the code file.
Example:
"code-runner.executorMap": {
"haskell": "cd $workspaceRoot && stack build && stack exec $workspaceName-exe"
}
I could do it using fileWorkspaceFolder:
"typescriptreact": "cd \"${fileWorkspaceFolder}\" && npm run dev"