From 7d65d5e2696996a9ef8774278c4717d5c0730bd5 Mon Sep 17 00:00:00 2001 From: CyrusNajmabadi Date: Thu, 17 Nov 2016 22:43:11 -0800 Subject: [PATCH] Add ability for callback to specify a message to display to the user. --- src/EditorFeatures/Core/FindUsages/FindUsagesContext.cs | 4 ++++ src/EditorFeatures/Core/FindUsages/IFindUsagesContext.cs | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/src/EditorFeatures/Core/FindUsages/FindUsagesContext.cs b/src/EditorFeatures/Core/FindUsages/FindUsagesContext.cs index 8762afb8a00..e04f6c2d98e 100644 --- a/src/EditorFeatures/Core/FindUsages/FindUsagesContext.cs +++ b/src/EditorFeatures/Core/FindUsages/FindUsagesContext.cs @@ -14,6 +14,10 @@ protected FindUsagesContext() { } + public virtual void ReportMessage(string message) + { + } + public virtual void SetSearchLabel(string displayName) { } diff --git a/src/EditorFeatures/Core/FindUsages/IFindUsagesContext.cs b/src/EditorFeatures/Core/FindUsages/IFindUsagesContext.cs index 79f415cd5ea..35f34ab9c11 100644 --- a/src/EditorFeatures/Core/FindUsages/IFindUsagesContext.cs +++ b/src/EditorFeatures/Core/FindUsages/IFindUsagesContext.cs @@ -9,6 +9,14 @@ internal interface IFindUsagesContext { CancellationToken CancellationToken { get; } + /// + /// Report a message to be displayed to the user. + /// + void ReportMessage(string message); + + /// + /// Set the title of the window that results are displayed in. + /// void SetSearchLabel(string displayName); Task OnDefinitionFoundAsync(DefinitionItem definition); -- GitLab