mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-06-13 07:10:26 +08:00
fix test provider sample not discovering correctly
This commit is contained in:
@ -171,7 +171,9 @@ class TestFile implements vscode.TestItem {
|
||||
ancestors.pop();
|
||||
}
|
||||
const range = new vscode.Range(new vscode.Position(lineNo, 0), new vscode.Position(lineNo, line.length));
|
||||
ancestors.push(new TestHeading(level, name, new vscode.Location(this.uri, range)));
|
||||
const thead = new TestHeading(level, name, new vscode.Location(this.uri, range));
|
||||
ancestors[ancestors.length - 1].children.push(thead);
|
||||
ancestors.push(thead);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user