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
{
///
public CompletionType AvailableCompletionTypes { get; set; }
///
public Func? PrepareInsertionText { get; } = data => data.Text;
///
public Task Setup()
{
return Task.CompletedTask;
}
///
public Task LoadFromFile(FilePath path, bool recreate = false)
{
return Task.CompletedTask;
}
///
public void BackgroundLoadFromFile(FilePath path, bool recreate = false) { }
///
public IEnumerable GetCompletions(
TextCompletionRequest completionRequest,
int itemsCount,
bool suggest
)
{
return Array.Empty();
}
}