提交 d1d30da5 编写于 作者: M Matt Bierner

Only show implementations code lens on top level interface

上级 4ebfc2fc
......@@ -65,19 +65,8 @@ export default class TypeScriptImplementationsCodeLensProvider extends TypeScrip
protected extractSymbol(
document: TextDocument,
item: Proto.NavigationTree,
parent: Proto.NavigationTree | null
_parent: Proto.NavigationTree | null
): Range | null {
// Handle children of interfaces
if (parent && parent.kind === PConst.Kind.interface) {
switch (item.kind) {
case PConst.Kind.memberFunction:
case PConst.Kind.memberVariable:
case PConst.Kind.memberGetAccessor:
case PConst.Kind.memberSetAccessor:
return super.getSymbolRange(document, item);
}
}
switch (item.kind) {
case PConst.Kind.interface:
return super.getSymbolRange(document, item);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册