Skip to content

Commit 4f232ba

Browse files
committed
improve documentation for debug hover API; fxes microsoft#91404
1 parent f9b3974 commit 4f232ba

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

src/vs/vscode.d.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2495,16 +2495,18 @@ declare module 'vscode' {
24952495

24962496
/**
24972497
* The evaluatable expression provider interface defines the contract between extensions and
2498-
* the debug hover.
2498+
* the debug hover. In this contract the provider returns an evaluatable expression for a given position
2499+
* in a document and VS Code evaluates this expression in the active debug session and shows the result in a debug hover.
24992500
*/
25002501
export interface EvaluatableExpressionProvider {
25012502

25022503
/**
25032504
* Provide an evaluatable expression for the given document and position.
2505+
* VS Code will evaluate this expression in the active debug session and will show the result in the debug hover.
25042506
* The expression can be implicitly specified by the range in the underlying document or by explicitly returning an expression.
25052507
*
2506-
* @param document The document in which the debug hover is opened.
2507-
* @param position The position in the document where the debug hover is opened.
2508+
* @param document The document for which the debug hover is about to appear.
2509+
* @param position The line and character position in the document where the debug hover is about to appear.
25082510
* @param token A cancellation token.
25092511
* @return An EvaluatableExpression or a thenable that resolves to such. The lack of a result can be
25102512
* signaled by returning `undefined` or `null`.
@@ -9174,6 +9176,7 @@ declare module 'vscode' {
91749176

91759177
/**
91769178
* Register a provider that locates evaluatable expressions in text documents.
9179+
* VS Code will evaluate the expression in the active debug session and will show the result in the debug hover.
91779180
*
91789181
* If multiple providers are registered for a language an arbitrary provider will be used.
91799182
*

0 commit comments

Comments
 (0)