Skip to content

Commit

Permalink
Properly report search matches for super classes (#1201)
Browse files Browse the repository at this point in the history
  • Loading branch information
isc-bsaviano authored Aug 4, 2023
1 parent e6a88b6 commit 3cf7b5a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/providers/FileSystemProvider/TextSearchProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,12 @@ function searchMatchToLine(
// This is in the class description
line = descLineToDocLine(content, match.attrline, i);
break;
} else if (match.attr == "Super") {
// This is a superclass
if (content[i].includes(match.text)) {
line = i;
}
break;
} else {
// This is a class keyword or keyword value
// Need to keep looping due to the possibility of keywords with multiline values
Expand Down

0 comments on commit 3cf7b5a

Please sign in to comment.