microsoft / microsoft/vscode-cpptools

Improve custom configuration variables

Aperta
#6,215 15 commenti 3 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Feature Request Feature: Configuration help wanted Language Service
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:

  1. Allow customConfigurationVariables to have property values which are arrays of strings;
  2. Add a new class of VS Code variables which can be used in tasks.json and launch.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 for env variablles in c_cpp_properties.json files. 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

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. 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

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.