Skip to content

Commit

Permalink
calls - tweak title, metatitle of peeks
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken committed Sep 12, 2019
1 parent 27d27b3 commit f1fb95f
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,12 @@ export class CallHierarchyTreePeekWidget extends PeekViewWidget {
}
node = parent;
}
this.setTitle(this._tree.getInput()!.word, names.join(' → '));

const title = this._direction === CallHierarchyDirection.CallsFrom
? localize('callFrom', " – Calls from: {0}", this._tree.getInput()!.word)
: localize('callsTo', " – Callers of: {0}", this._tree.getInput()!.word);

this.setTitle(title, names.join(' → '));
}
}));

Expand Down Expand Up @@ -376,9 +381,6 @@ export class CallHierarchyTreePeekWidget extends PeekViewWidget {
if (!viewState) {
this._tree.setFocus([firstChild]);
}
this.setMetaTitle(this._direction === CallHierarchyDirection.CallsFrom
? localize('callFrom', " – Calls")
: localize('callsTo', " – Callers"));
}

if (!this._changeDirectionAction) {
Expand Down

0 comments on commit f1fb95f

Please sign in to comment.