microsoft / microsoft/TypeScript

Parameter hints do not get dismissed when the cursor moves

Offen
#29,430 11 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Awaiting More Feedback Domain: LS: Signature Help Suggestion
Vorherrschende Sprache
Go
Sterne
111k
Forks
14.3k
Ø Merge
1 T. 19 Std.
Gemergte PRs (30 T.)
117

Beschreibung

Presently, it appears that the parameter hint window does not get dismissed if it is brought up when invoking a function within the argument list of another function and you move out of the inner function's argument list. The popup changes to reflect its new position, but this is not a generally useful thing and in something like a giant argument list like a call to webpackMerge this is incredibly irritating. Couple this with the fact that the Vim extension does not dismiss the param hints when you press escape and it's pretty rough.

It would be really nice if the parameter hints were dismissed when leaving the current argument list. I can see an argument for it remaining open while navigating around the current argument list, but if the cursor leaves that list and goes to an outer list, it should be dismissed.

Thanks!

  • VSCode Version: 1.27.0 - insiders and 1.26.0
  • OS Version: macOS 10.13.6

Steps to Reproduce:

  1. Open a new file

  2. Change to javascript mode

  3. Enter the text:

    const path = require('path')
    
    Array.isArray([
      baz,
    
    ])
    
  4. Place cursor on line after baz

  5. Type Array.apply(. The parameter hint overlay should appear.

  6. Press the up arrow.

Expected:
Parameter hint window is dismissed

Actual:
Parameter hint window remains covering code

Does this issue occur when all extensions are disabled?: Yes

parameterhints

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Es wird keine Quelldatei und kein Test genannt. Beginne damit, das JavaScript-Beispiel in VS Code zu reproduzieren, einschließlich des Herausbewegens des Cursors aus der inneren Argumentliste; als erledigt gilt die Aufgabe, wenn das Fenster mit dem Parameterhinweis beim Verlassen dieser Liste geschlossen wird und das berichtete Verhalten durch einen Regressionstest abgedeckt ist.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
javascript, vscode
Bereich
developer-experience, tooling
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Klar beschrieben
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

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