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.
36 lines
1008 B
36 lines
1008 B
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 bool IsLoaded => false; |
|
|
|
/// <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>(); |
|
} |
|
}
|
|
|