Skip to content

Commit

Permalink
fix: Cannot go to test source (#1098)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdneo authored Nov 9, 2020
1 parent e2f930a commit b94d319
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/testReportProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class TestReportProvider implements Disposable {
if (message.uri && message.range) {
return openTextDocument(Uri.parse(message.uri), JSON.parse(message.range) as Range);
} else if (message.fullName) {
const items: ILocation[] = await searchTestLocation(message.fullName);
const items: ILocation[] = await searchTestLocation(message.fullName.slice(message.fullName.indexOf('@') + 1));
if (items.length === 1) {
return openTextDocument(Uri.parse(items[0].uri), items[0].range);
} else if (items.length > 1) {
Expand Down

0 comments on commit b94d319

Please sign in to comment.