mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 02:28:34 +01:00
Only show implementations code lens on top level interface
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user