Skip to content

Commit

Permalink
fix: sort text by location even if location is unknown
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed May 9, 2024
1 parent 57997d7 commit f282283
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/testTree.ts
Expand Up @@ -284,6 +284,9 @@ export class TestTree extends vscode.Disposable {
const position = new vscode.Position(location.line - 1, location.column)
testItem.range = new vscode.Range(position, position)
}
else {
testItem.sortText = task.id
}
if (task.type === 'suite')
TestSuite.register(testItem, parent, fileData)
else if (task.type === 'test' || task.type === 'custom')
Expand Down

0 comments on commit f282283

Please sign in to comment.