Skip to content

Commit

Permalink
markers: update tooltip to display full path
Browse files Browse the repository at this point in the history
Fixes #7204

- updates the `MarkerInfoNode` (file) tooltip to display the full path of a resource.
- updates the existing tooltips to instead use the full path.

Signed-off-by: Vincent Fugnitto <vincent.fugnitto@ericsson.com>
  • Loading branch information
vince-fugnitto committed Feb 24, 2020
1 parent bb249c2 commit 6ce9c5a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/markers/src/browser/problem/problem-widget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,12 @@ export class ProblemWidget extends TreeWidget {
const icon = this.toNodeIcon(node);
const name = this.toNodeName(node);
const description = this.toNodeDescription(node);
return <div className='markerFileNode'>
// Use a custom scheme so that we fallback to the `DefaultUriLabelProviderContribution`.
const path = this.labelProvider.getLongName(node.uri.withScheme('marker'));
return <div title={path} className='markerFileNode'>
{icon && <div className={icon + ' file-icon'}></div>}
<div title={name} className='name'>{name}</div>
<div title={description} className='path'>{description}</div>
<div className='name'>{name}</div>
<div className='path'>{description}</div>
<div className='notification-count-container'>
<span className='notification-count'>{node.numberOfMarkers.toString()}</span>
</div>
Expand Down

0 comments on commit 6ce9c5a

Please sign in to comment.