Skip to content

Commit 3cf7b5a

Browse files
authored
Properly report search matches for super classes (intersystems-community#1201)
1 parent e6a88b6 commit 3cf7b5a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/providers/FileSystemProvider/TextSearchProvider.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,12 @@ function searchMatchToLine(
149149
// This is in the class description
150150
line = descLineToDocLine(content, match.attrline, i);
151151
break;
152+
} else if (match.attr == "Super") {
153+
// This is a superclass
154+
if (content[i].includes(match.text)) {
155+
line = i;
156+
}
157+
break;
152158
} else {
153159
// This is a class keyword or keyword value
154160
// Need to keep looping due to the possibility of keywords with multiline values

0 commit comments

Comments
 (0)