microsoft / microsoft/vscode-cpptools
Improve custom configuration variables
Nessuno ha ancora preso questa issue.
- Lingua principale
- TypeScript
- Stelle
- 6.2k
- Fork
- 1.7k
- Merge medio
- 14h 46m
- PR unite (30g)
- 61
Descrizione
@sean-mcmanus I think my comment is already a suggestion to make it better:
- Allow
customConfigurationVariablesto have property values which are arrays of strings; - Add a new class of VS Code variables which can be used in
tasks.jsonandlaunch.json. These variables can be used in substitutions with a syntax like${cpptools:<Variablename>}. This is similar to the syntax for environment variables, configuration variables, and command variables. These substitutions should also be allowed as part of an array of strings similar to the example forenvvariablles inc_cpp_properties.jsonfiles. So in arrays of strings the variable can not only represent a string but also an array of strings similar to the following lines in the mentioned example:
"env": { "myDefaultIncludePath": ["${workspaceFolder}", "${workspaceFolder}/include"] },
"includePath": ["${myDefaultIncludePath}", "/another/path"]
which is substituted to
"includePath": ["${workspaceFolder}", "${workspaceFolder}/include", "/another/path"]
Originally posted by @PetaSoft in https://github.com/microsoft/vscode-cpptools/pull/5453#issuecomment-696612225
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.
Direzione di ricerca
Inizia leggendo il riferimento collegato alle variabili di VS Code e l'esempio dello schema c_cpp_properties.json, concentrandoti su tasks.json, launch.json e customConfigurationVariables. Il lavoro è completato quando le variabili personalizzate con valori array funzionano e le sostituzioni di cpptools vengono espanse correttamente come stringhe o array nei campi di configurazione richiesti.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- typescript, vscode
- Ambito
- developer-experience, tooling
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100