Skip to content

Commit b94d319

Browse files
authored
fix: Cannot go to test source (#1098)
1 parent e2f930a commit b94d319

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/testReportProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class TestReportProvider implements Disposable {
6565
if (message.uri && message.range) {
6666
return openTextDocument(Uri.parse(message.uri), JSON.parse(message.range) as Range);
6767
} else if (message.fullName) {
68-
const items: ILocation[] = await searchTestLocation(message.fullName);
68+
const items: ILocation[] = await searchTestLocation(message.fullName.slice(message.fullName.indexOf('@') + 1));
6969
if (items.length === 1) {
7070
return openTextDocument(Uri.parse(items[0].uri), items[0].range);
7171
} else if (items.length > 1) {

0 commit comments

Comments
 (0)