Skip to content

Commit d1d30da

Browse files
committed
Only show implementations code lens on top level interface
1 parent 4ebfc2f commit d1d30da

1 file changed

Lines changed: 1 addition & 12 deletions

File tree

extensions/typescript/src/features/implementationsCodeLensProvider.ts

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -65,19 +65,8 @@ export default class TypeScriptImplementationsCodeLensProvider extends TypeScrip
6565
protected extractSymbol(
6666
document: TextDocument,
6767
item: Proto.NavigationTree,
68-
parent: Proto.NavigationTree | null
68+
_parent: Proto.NavigationTree | null
6969
): Range | null {
70-
// Handle children of interfaces
71-
if (parent && parent.kind === PConst.Kind.interface) {
72-
switch (item.kind) {
73-
case PConst.Kind.memberFunction:
74-
case PConst.Kind.memberVariable:
75-
case PConst.Kind.memberGetAccessor:
76-
case PConst.Kind.memberSetAccessor:
77-
return super.getSymbolRange(document, item);
78-
}
79-
}
80-
8170
switch (item.kind) {
8271
case PConst.Kind.interface:
8372
return super.getSymbolRange(document, item);

0 commit comments

Comments
 (0)