Dart-Code / Dart-Code

Dart and Flutter support for VS Code
https://dartcode.org/
MIT License
1.46k stars 295 forks source link

Support autocompletion / intellisense in the Debug Console input (Debug Console REPL) like in TypeScript #5109

Closed MiniSuperDev closed 2 weeks ago

MiniSuperDev commented 2 weeks ago

Hello

https://code.visualstudio.com/docs/editor/debugging#_debug-console-repl

In TypeScript it show autocomplete for all variables in the scope:

image

And also autocomplete for the methods and properties of the variable.

image

in Dart it doesn't show anything

image image

function hello(): void {
  const text: String = "hello world";
  console.log(text);
}

hello();
void main() {
  final String text = "hello world";
  print(text);
}
DanTup commented 2 weeks ago

There's an existing issue about this at https://github.com/Dart-Code/Dart-Code/issues/169

So far it has no 👍 's so I don't know how much demand there is for it. I think DevTools has some code to provide this there, so it might give a starting point (or be something we could easily move into the debug adapters now they're in Dart).