flutter / flutter/devtools

Types show differently in VSCode and DevTools

Open
#5,749 3 comments 0 reactions 0 assignees View on GitHub
console component P2
Dominant language
Dart
Stars
1.7k
Forks
404
Avg merge
6d 17h
Merged PRs (30d)
18

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.