flutter / flutter/devtools

Types show differently in VSCode and DevTools

Offen
#5,749 3 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
console component P2
Vorherrschende Sprache
Dart
Sterne
1.7k
Forks
404
Ø Merge
6 T. 17 Std.
Gemergte PRs (30 T.)
18

Beschreibung

Platforms: macos, (soon web as well, after https://github.com/dart-lang/webdev/pull/2103)

**VSCode**

image

**DevTools**

image

**Questions**

- Should we display types similarly in VSCode and DevTools?
- Should we make the representation realistic, i.e. if the field is showing in DevTools/VSCode then the user can access it via expression evaluation, unless it is shown as private?
- Currently `0.runtimeType.name` field is not accessible (does not compile) but shows in DevTools
- Currently `(0,1).runtimeType.$1` is not accessible (does not compile) but shows in VSCode

Related: https://github.com/dart-lang/webdev/pull/2103

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

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