microsoft / microsoft/vscode-cpptools
Improve how a Default config is selected when newly opening a folder containing an existing `c_cpp_properties.json`
@jureid ci sta già lavorando.
Dal 1/3/2022.
- Lingua principale
- TypeScript
- Stelle
- 6.2k
- Fork
- 1.7k
- Merge medio
- 14h 46m
- PR unite (30g)
- 61
Descrizione
When creating a c_cpp_properties.json file, the default configuration is given an OS specific name. "Win32", "Mac", or "Linux". The same name is used to select a configuration when opening a folder containing an existing c_cpp_properties.json for the first time.
Suggestion: Use default configuration names that are specific to the OS, architecture, and a detected toolset. i.e. "Windows x64 MSVC", "macOS arm64 clang", "Linux armhf gcc"
This would apply only to newly created or newly opened folders. Any folders that had previously been opened would continue to preserve their currently selected config. In the 'existing configs' (newly opened) scenario, if none of the new default names were found, the legacy default could be used. If not found, it would be possible to fall back to another config somewhat intelligently, such as first ignoring toolset, then architecture. If still no match, the first (possibly only) config would be selected.
Or a more limited solution might be to use the fully qualified default names only when newly opening a folder containing an existing c_cpp_properties.json
This could enable projects to greatly reduce configuration complexity for their users/contributors.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Valutazione
Questa issue non è ancora stata valutata.