File: SemanticSearch\ISemanticSearchCopilotUIProvider.cs
Web Access
Project: src\src\VisualStudio\Core\Def\Microsoft.VisualStudio.LanguageServices_iipxmehf_wpftmp.csproj (Microsoft.VisualStudio.LanguageServices)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
 
using System.Windows.Controls;
using Microsoft.VisualStudio.OLE.Interop;
using Microsoft.VisualStudio.Text.Editor;
 
namespace Microsoft.CodeAnalysis.SemanticSearch;
 
/// <summary>
/// Abstraction over Copilot prompt text box UI.
/// </summary>
internal interface ITextBoxControl
{
    Control Control { get; }
    string Text { get; set; }
    IOleCommandTarget CommandTarget { get; }
    IWpfTextView View { get; }
}
 
/// <summary>
/// Abstraction over Copilot prompt UI.
/// </summary>
internal interface ISemanticSearchCopilotUIProvider
{
    bool IsAvailable { get; }
    ITextBoxControl GetTextBox();
}