vscode-code-runner icon indicating copy to clipboard operation
vscode-code-runner copied to clipboard

Add '$workspaceName' placeholder

Open ghost opened this issue 5 years ago • 1 comments

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"
}

ghost avatar Apr 07 '20 15:04 ghost

I could do it using fileWorkspaceFolder:

        "typescriptreact": "cd \"${fileWorkspaceFolder}\" && npm run dev"

Sbrjt avatar May 05 '25 10:05 Sbrjt