microsoft / microsoft/vscode-makefile-tools
Command substitution in configuration settings?
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- TypeScript
- Stars
- 242
- Forks
- 78
- PR merge metrics
- No merged PRs in 30d
Description
In a project we ship .vscode/settings.json like this:
"makefile.configurations": [
{
"name" : "Linux - X64 - Tiles/Sound - Release",
"makeArgs": [
"-j4",
"CLANG=1",
"CCACHE=1",
"NATIVE=linux64",
"RELEASE=1",
"TILES=1",
"SOUND=1"
]
},
...
I would like to be able to do this or some equivalent:
"makeArgs": [
"-j$(nproc)",
Is there a way to accomplish this currently without having to modify the project Makefile?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with .vscode/settings.json and the makefile.configurations makeArgs setting shown in the issue, then trace how the extension passes those arguments to Make. Check whether shell command substitution is currently supported; done means either documenting the existing way to use $(nproc) or adding support for it without modifying the project Makefile.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- shell, typescript
- Domain
- build-system, tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100