formulahendry / formulahendry/vscode-code-runner
[Feature request] Make `executorMap` behave differently for different OS platforms
- Dominant language
- TypeScript
- Stars
- 2.4k
- Forks
- 351
- PR merge metrics
- No merged PRs in 30d
Description
It would solve many problems if the extension could identify the operating
system platform and run different executors.
Description of what would be a minimal interface:
```json
{
"code-runner.executorMap.windows": {
"python": "python",
"html": "\"C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe\"",
"c": "cd $dir && cl.exe $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt"
},
"code-runner.executorMap.linux": {
"python": "python3",
"html": "/usr/local/bin/chrome",
"c": "cd $dir && gcc $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt"
}
}
```
Related issues (still open)
- #350
- #1049
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the executorMap configuration handling and the extension entry point, then trace how executor commands are selected. Define platform-specific settings for the Windows and Linux examples, and verify that the appropriate Python, HTML, and C executors are selected without changing existing behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- developer-experience, tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100