-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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
debugAdapter console intellisense Apis #8114
Comments
@nojvek I don't think that the debugAdapter is involved here. What is needed is access to the language model in the debug console (and all other places where language specific code is edited). The intellisense experience in the debug console should be the same as in the editor (and the editor doesn't use the debugAdapter for this). |
The language service might not always know what is possible at runtime. e.g On Sat, Jun 25, 2016 at 1:36 AM, Andre Weinand notifications@github.com
|
I agree with @nojvek, intellisense will be far more useful if the debug adapter is involved. For JS targets in particular, I think users will expect an F12/chrome devtools-like experience where intellisense shows properties that are actually available. It would be interesting if the two data sources were mashed up, giving you available properties along with language service data when available, if that's feasible. |
Yes, we are aiming for a combination of debug adapter and language service and we are planning to start with the debug adapter. Here is the corresponding debug protocol feature request: microsoft/vscode-debugadapter-node#48 |
This is awesome. Thanks Andre When criteria do you think will determine it going into stable mode rather On Thursday, July 21, 2016, Andre Weinand notifications@github.com wrote:
|
@nojvek as soon as we have implemented the frontend (UI) and at least one backend (node-debug) for it. Then we have a better understanding of the fine details of the protocol. The experimental API that I've added is just to get things started... |
@isidorn ok, I'll add this. For now just hardcode 'property' |
@isidorn I've added a |
The current VSCode debugging experience feel subpar to that of chrome devtools or F12 console.
Proposal:
debugAdapter sends getConsoleCompletionsAtPosition(text: string, pos: number): ConsoleCompletions[] as user is typing.
debugAdapter returns back a list of completions
interface ConsoleCompletions {
text: string;
pos: number; // where to apply this completion
.. other info
}
I'm not sure of the exact completions structure but happy to have input from other adapter folks.
The text was updated successfully, but these errors were encountered: