Skip to content

Commit

Permalink
test: update highlight test (#447)
Browse files Browse the repository at this point in the history
  • Loading branch information
sockmaster27 authored Sep 6, 2024
1 parent 81b134c commit 6f045a4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/src/highlight.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ suite('Highlight uses', () => {
mainDocUri,
position,
)
assert.strictEqual(r, undefined)

// VS Code 1.93.0 and newer return an empty list.
// Older versions return undefined.
assert(r === undefined || r.length === 0)
})

async function testHighlight(uri: vscode.Uri, position: vscode.Position, expectedRanges: vscode.Range[]) {
Expand Down

0 comments on commit 6f045a4

Please sign in to comment.