flutter / flutter/devtools

Types show differently in VSCode and DevTools

Aperta
#5,749 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub
console component P2
Lingua principale
Dart
Stelle
1.7k
Fork
404
Merge medio
6g 17h
PR unite (30g)
18

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.