We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e15ff7 commit dae3538Copy full SHA for dae3538
src/commands/unitTest.ts
@@ -223,7 +223,7 @@ async function getTestItemForClass(
223
): Promise<vscode.TestItem | undefined> {
224
let item: vscode.TestItem;
225
const rootItem = rootItemForItem(testController, uri);
226
- if (rootItem) {
+ if (rootItem && !rootItem.error) {
227
// Walk the directory path until we reach a dead end or the TestItem for this class
228
let docPath = uri.path.slice(rootItem.uri.path.length);
229
docPath = docPath.startsWith("/") ? docPath.slice(1) : docPath;
0 commit comments