-
Notifications
You must be signed in to change notification settings - Fork 219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support debug console auto-completion #1043
Conversation
ping |
I was ignoring it due to this comment. Is this testable in VS Code? |
I see, yes should still be. |
if (command[0] == '`') | ||
command = command.Substring(1); | ||
else if (command.StartsWith("-exec", StringComparison.Ordinal)) | ||
command = command.Substring(6); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the command doesn't start with ``` or -exec
don't you want to not call AutoComplete?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well that's the question. As I said if we talk about the vscode debug console and gdb nobody expects expression completion. If the completion is also used for Watches (spec doesn't talk about that) then that's something else.
And I guess for VS Immediate Window you'd expect expressions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it doesn't start with ``` or -exec
then it is an expression. Since GDB doesn't have expression auto complete, I think we need to just return an empty match list without calling the engine.
75e1b4e
to
6b96092
Compare
1696b54
to
a3e21e9
Compare
src/Microsoft.VisualStudio.Debugger.Interop.DAP/Microsoft.VisualStudio.Debugger.Interop.DAP.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for talking long to get back to this. We were finalizing getting testing tp be OpenSourced and moving MIEngine to .NET 5.
With these changes we request that any changes to OpenDebugAD7/DAP is also covered in the testing scenario.
Here is a commit with changes for testing AutoComplete: 3a1d8d4
If you want to merge in my branch dev/waan/completions, it addresses the issues above. |
@WardenGnaw "First-time contributors need a maintainer to approve running workflows" |
Done |
Sorry, one more thing to address that is fixed in f23ba3c |
Well my opinion is still that debug console inputs should just be treated as commands in general when you're on Linux. That's what you expect as a gdb user. |
It basically works but sometimes vscode only offers the history suggestions even though it receives a proper completions response:
May be a vscode bug but I can't see anything in
https://github.com/microsoft/vscode/blob/e0d5fae35ff101b37da0c8bee61551ceeb6a2e1c/src/vs/workbench/contrib/debug/browser/repl.ts#L151-L190