in src/test-explorer/decorator.ts [120:137]
private setDecorationRanges(
editor: vscode.TextEditor,
docInfo: TestFileContents | null
) {
let ranges: vscode.Range[] = []
if (docInfo) {
ranges = docInfo.testCases.map(test => test.range)
}
const decorations: vscode.DecorationOptions[] = []
for (const range of ranges) {
decorations.push({
range: new vscode.Range(range.start, range.start), // first line of the test only
hoverMessage: this.hoverMessage,
})
}
editor.setDecorations(this.decorationType, decorations)
}