vscode-csharp icon indicating copy to clipboard operation
vscode-csharp copied to clipboard

VS Code extension: Add IntelliSense suggestions in debug console

Open dougbu opened this issue 9 years ago • 8 comments

Nothing currently assists users as they type out expressions in the VS Code debug console. Not sure if there's already a feature the C# extension could hook into. But whether or not VS Code needs a new feature as well, this would be a good improvement to the debugging story.

BTW the ability to expand objects in the debug console output window helps but isn't sufficient. For one thing, method calls aren't supported there.

dougbu avatar May 10 '16 18:05 dougbu

@dougbu can you open this in https://github.com/Microsoft/vscode/issues?

gregg-miskelly avatar May 10 '16 19:05 gregg-miskelly

@gregg-miskelly is work needed here as well as there i.e. should this issue remain open too? What's the VS Code term for IntelliSense?

dougbu avatar May 10 '16 20:05 dougbu

I would guess that the IntelliSense interface for this new feature would have to be slightly different than the current interactions between VS Code and extensions since the expression is typed in a different physical document.

gregg-miskelly avatar May 10 '16 20:05 gregg-miskelly

Filed Microsoft/vscode#6263

dougbu avatar May 10 '16 20:05 dougbu

@gregg-miskelly @jasonmalinowski according to https://github.com/microsoft/vscode/issues/6263 this should now be supported in vs code:

This is now supported on the vscode side. Once omnisharp-vscode picks up the api it should be fully working

Is anything else needed to get this to work in the C# extension? Also this problem is not limited to the debug console. The watch window also apparently doesn't provide access to intellisense.

awa5114 avatar Sep 29 '23 13:09 awa5114

Is anything else needed to get this to work in the C# extension?

Yes, there is a whole lot of work in the C# extension required to support this. This is not a trivial feature, as the way the feature works in VS Code is really designed for dynamic languages (ex: JavaScript). Statically typed languages need to build a bring from the debugger back to the language service for this feature to work.

gregg-miskelly avatar Sep 29 '23 16:09 gregg-miskelly

@gregg-miskelly So are you saying we shouldn't expect intellisense to work in Debug or Watch windows? Because mine aren't.

terryaney avatar Feb 03 '24 23:02 terryaney

@terryaney This issue tracks adding support to the C# extension for supporting intellisense in any of the debugger evaluation windows. However, VS Code doesn't support intellisense in the watch window. So to have it in the watch window, the C# team needs to complete this feature, and the VS Code team needs to complete https://github.com/microsoft/vscode/issues/48810.

gregg-miskelly avatar Feb 05 '24 17:02 gregg-miskelly