sdk icon indicating copy to clipboard operation
sdk copied to clipboard

Missing autocomplete/content assist in `when` clause of `switch`

Open denniskaselow opened this issue 2 days ago • 2 comments

Using Dart SDK version: 3.11.0-190.0.dev (dev) (Mon Dec 1 04:03:43 2025 -0800) on "windows_x64"

And given the following code:

void main() {
  final a = switch (1) {
    final foo => 
  };
  final b = switch (1) {
    final foo when 
  };
}

If I use autocomplete after the => I get suggestions for foo. But if I use autocomplete after the when there is no suggestion for foo.

denniskaselow avatar Dec 09 '25 11:12 denniskaselow