dart-lang / sdk

The Dart SDK, including the VM, JS and Wasm compilers, analysis, core libraries, and more.
https://dart.dev
BSD 3-Clause "New" or "Revised" License
10.1k stars 1.56k forks source link

No completion after dot when subsequent code forms valid expression #56783

Open mraleph opened 2 hours ago

mraleph commented 2 hours ago

If I type . after x in the code below:

class Something {
  void foo() {}
}

void main() {
  final x = Something();
  var current = null;

  x.
  current = null;
}

I don't get any completion. I am not sure if this is analysis server or VSCode issue.

cc @bwilkerson @scheglov @DanTup

dart-github-bot commented 2 hours ago

Summary: The user is experiencing a lack of code completion after typing a dot following a variable (x) in a Dart code snippet. The issue might be related to either the analysis server or the VSCode extension.

julemand101 commented 2 hours ago

I don't get any completion. I am not sure if this is analysis server or VSCode issue.

I can reproduce the issue in Intellij.

Version info:

Dart SDK version: 3.5.3 (stable) (Wed Sep 11 16:22:47 2024 +0000) on "windows_x64"
Dart Plugin version: 242.22855.32