contextValue
Context value of the test item. This can be used to contribute message- specific actions to the test peek view. The value set here can be found in the testMessage
property of the following menus
contribution points:
testing/message/context
- context menu for the message in the results treetesting/message/content
- a prominent button overlaying editor content where the message is displayed.
For example:
"contributes": {
"menus": {
"testing/message/content": [
{
"command": "extension.deleteCommentThread",
"when": "testMessage == canApplyRichDiff"
}
]
}
}
Content copied to clipboard
The command will be called with an object containing:
test
: the TestItem the message is associated with, if it is still present in the TestController.items collection.message
: the TestMessage instance.