flutter / flutter/devtools

Types show differently in VSCode and DevTools

Abierto
#5,749 3 comentarios 0 reacciones 0 asignados Ver en GitHub
console component P2
Lenguaje dominante
Dart
Estrellas
1.7k
Forks
404
Merge medio
6 d 17 h
PR fusionados (30 d)
18

Descripción

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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.