formulahendry / formulahendry/vscode-code-runner

[Feature request] Make `executorMap` behave differently for different OS platforms

Open
#1,287 0 comments 0 reactions 0 assignees View on GitHub
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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.