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

Commit 968b709

Browse files
authored
Merge pull request #59 from jeanp413/fix-vscode-95288
Fixes call hierarchy shows wrong result at first
2 parents 6aa452a + ce87e7c commit 968b709

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ export function activate(context: vscode.ExtensionContext) {
345345
vscode.commands.registerCommand('references-view.find', () => findReferencesCommand(ItemSource.References)),
346346
vscode.commands.registerCommand('references-view.findImplementations', () => findReferencesCommand(ItemSource.Implementations)),
347347
vscode.commands.registerCommand('references-view.refindReference', findReferencesCommand),
348-
vscode.commands.registerCommand('references-view.showCallHierarchy', updateCallHierachyModel),
348+
vscode.commands.registerCommand('references-view.showCallHierarchy', () => updateCallHierachyModel()),
349349
vscode.commands.registerCommand('references-view.showOutgoingCalls', (arg) => setCallHierarchyDirectionCommand(CallsDirection.Outgoing, arg)),
350350
vscode.commands.registerCommand('references-view.showIncomingCalls', (arg) => setCallHierarchyDirectionCommand(CallsDirection.Incoming, arg)),
351351
vscode.commands.registerCommand('references-view.refind', refindCommand),

src/models.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ export class RichCallsDirection {
318318

319319
constructor(
320320
private _mem: vscode.Memento,
321-
private _value: CallsDirection = CallsDirection.Incoming,
321+
private _value: CallsDirection = CallsDirection.Outgoing,
322322
) {
323323
const raw = _mem.get<number>(RichCallsDirection._key);
324324
if (typeof raw === 'number' && raw >= 0 && raw <= 1) {

0 commit comments

Comments
 (0)