Multi-Platform Package Manager for Stable Diffusion
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.0 KiB

using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using StabilityMatrix.Avalonia.Controls.CodeCompletion;
using StabilityMatrix.Avalonia.Models.TagCompletion;
using StabilityMatrix.Core.Models.FileInterfaces;
namespace StabilityMatrix.Avalonia.DesignData;
public class MockCompletionProvider : ICompletionProvider
{
/// <inheritdoc />
public CompletionType AvailableCompletionTypes { get; set; }
/// <inheritdoc />
public Func<ICompletionData, string>? PrepareInsertionText { get; } = data => data.Text;
/// <inheritdoc />
public Task LoadFromFile(FilePath path, bool recreate = false)
{
return Task.CompletedTask;
}
/// <inheritdoc />
public void BackgroundLoadFromFile(FilePath path, bool recreate = false) { }
/// <inheritdoc />
public IEnumerable<ICompletionData> GetCompletions(
TextCompletionRequest completionRequest,
int itemsCount,
bool suggest
)
{
return Array.Empty<ICompletionData>();
}
}