Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Commit d49d910

Browse files
authored
Merge pull request #64 from nixel2007/patch-1
Pass selectionRange as parameter to prepareHierarchy call
2 parents 721d67d + 1ac3466 commit d49d910

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/calls/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export function register(tree: SymbolsTree, context: vscode.ExtensionContext): v
2525
let newInput: CallsTreeInput | undefined;
2626
const oldInput = tree.getInput();
2727
if (anchor instanceof CallItem) {
28-
newInput = new CallsTreeInput(new vscode.Location(anchor.item.uri, anchor.item.range.start), direction.value);
28+
newInput = new CallsTreeInput(new vscode.Location(anchor.item.uri, anchor.item.selectionRange.start), direction.value);
2929
} else if (oldInput instanceof CallsTreeInput) {
3030
newInput = new CallsTreeInput(oldInput.location, direction.value);
3131
}

0 commit comments

Comments
 (0)