microsoft / microsoft/vscode-cpptools
Extract to function is available on `= <expr>` for a declaration and generates invalid code
Aperta
@sean-mcmanus ci sta già lavorando.
Dal 22/9/2023.
bug
Feature: Extract to function
insiders
Language Service
Visual Studio
- Lingua principale
- TypeScript
- Stelle
- 6.2k
- Fork
- 1.7k
- Merge medio
- 14h 46m
- PR unite (30g)
- 61
Descrizione
Use Extract to function on the code below with the selection shown in the screenshot (= <expr> for a declaration).
int main()
{
int i = 0;
return i;
}
Bug: It generates invalid code. It should show the "Expand selection" command, like it does for an assignment instead of a definition initialization. The bug repros with VS too.
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.