-
Notifications
You must be signed in to change notification settings - Fork 79
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
Add additional context to debug adapter evaluateRequest
calls.
#137
Comments
I would also like to request for the extra context that in case of a hover evaluation the position of the hovered text is also passed along. Similar as the texdocument/hover for the language server. |
@weinand. |
We have introduced an extension API proposal for hooking into the debug hover mechanism. Since "evaluatable expression" are more more on the language side than the debugger side, I suggest that we continue the discussion in microsoft/vscode#89084. |
From @indiejames on July 3, 2016 1:59
DebugProtocol.EvaluateArguments
includes thecontext
which can behover
,watch
, orrepl
, but it would be helpful to (optionally) include additional context. In particular, for Clojure, the namespace in which the code is being evaluated is pertinent. A brute force way of passing on useful context would be to pass the text of the document in which the code is being executed if it is executed from a selection inside an editor.A more general approach would be to let an extension register a context generator function that gets passed the editor (to determine the selected text) and returns the
EvaluateArguments
object to be passed to the debug adapter. In this way the generator could limit the contextual information to only what is required (like the enclosing namespace in the case of Clojure). This would also allow the generator to expend the selection to an enclosing form, etc.Copied from original issue: microsoft/vscode#8686
The text was updated successfully, but these errors were encountered: