Welcome to mirror list, hosted at ThFree Co, Russian Federation.

IDebugInfoProvider.cs « QuickInfo « MonoDevelop.Debugger.VSTextView « MonoDevelop.Debugger « addins « src « main - github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1effd8017b2fb8e5086c6597150b5e7d389ade8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using System;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.VisualStudio.Text;

namespace MonoDevelop.Debugger.VSTextView.QuickInfo
{
	public interface IDebugInfoProvider
	{
		Task<DataTipInfo> GetDebugInfoAsync (SnapshotPoint snapshotPoint, CancellationToken cancellationToken);
		Task<DataTipInfo> GetDebugInfoAsync (SnapshotSpan snapshotSpan, CancellationToken cancellationToken);
	}

	public struct DataTipInfo
	{
		public readonly ITrackingSpan Span;
		public readonly string Text;

		public DataTipInfo (ITrackingSpan span, string text)
		{
			this.Span = span;
			this.Text = text;
		}

		public bool IsDefault {
			get { return Span == null && Text == null; }
		}

		public override string ToString () => $"{Span} {Text}";
	}
}