[Feature] Stop Expo Go installation when Quick Pick is canceled

Geschlossen Anfängerfreundlich
#2,959 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

@erenbati arbeitet bereits daran.

Seit 26.9.2026.

  • #2967 von @erenbati — offen

Bewertung

Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Anfängerfreundlichkeit
88/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
react-native, typescript, vscode

Rechercherichtung

Beginne mit dem Befehl React Native: Install Expo Go Application und verfolge dessen zwei showQuickPick-Aufrufe. Kehre sofort zurück, wenn eine der Auswahlen abgebrochen wird, füge anschließend Regressionstests für beide Abbruchpfade hinzu und überprüfe, dass keine spätere Eingabeaufforderung, Metadatenanfrage, kein Download und keine Installation erfolgt.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

enhancement

Description

The Install Expo Go Application command continues executing when the user cancels one of its Quick Pick prompts.

  • Canceling the platform selection still opens the installation method prompt.
  • Canceling the installation method is treated like a manual installation, causing the command to continue checking the Expo environment and potentially downloading Expo Go.

Steps to reproduce

  1. Run the React Native: Install Expo Go Application command.
  2. Cancel the platform selection.

Alternatively:

  1. Select a platform.
  2. Cancel the installation method selection.

Expected behavior

The command should stop immediately when either Quick Pick is canceled. It should not display another prompt, request Expo version metadata, download files, or install an application.

Actual behavior

The command continues after cancellation and may perform unnecessary network or download operations.

Proposed fix

Return early after each showQuickPick call when no option is selected, and add regression tests for both cancellation paths.

Vorherrschende Sprache
TypeScript
Sterne
2.7k
Forks
303
Ø Merge
22 Std. 52 Min.
Gemergte PRs (30 T.)
36

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus microsoft/vscode-react-native

Alle Issues in microsoft/vscode-react-native

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.