提交 257500e6 编写于 作者: C CyrusNajmabadi

Set the caption label of the FAR window.

上级 cf8168b5
......@@ -205,6 +205,9 @@ private bool TryDisplayReferences(Tuple<IEnumerable<ReferencedSymbol>, Solution>
var symbol = symbolAndSolution.Item1;
var solution = symbolAndSolution.Item2;
var displayName = GetDisplayName(symbol);
context.SetSearchLabel(displayName);
// Now call into the underlying FAR engine to find reference. The FAR
// engine will push results into the 'progress' instance passed into it.
// We'll take those results, massage them, and forward them along to the
......
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Threading;
using Microsoft.CodeAnalysis.FindReferences;
......@@ -13,6 +14,10 @@ protected FindReferencesContext()
{
}
public virtual void SetSearchLabel(string displayName)
{
}
public virtual void OnStarted()
{
}
......
......@@ -113,6 +113,15 @@ public IDisposable Subscribe(ITableDataSink sink)
#region FindReferencesContext overrides.
public override void SetSearchLabel(string displayName)
{
var labelProperty = _findReferencesWindow.GetType().GetProperty("Label");
if (labelProperty != null)
{
labelProperty.SetValue(_findReferencesWindow, displayName);
}
}
public override void OnStarted()
{
foreach (var subscription in _subscriptions)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册