ContentProvider refactor

This commit is contained in:
2022-02-19 23:00:37 +01:00
parent 13a021c030
commit cd04e992f1
16 changed files with 189 additions and 383 deletions

View File

@@ -564,7 +564,7 @@ namespace FileTime.Avalonia.Services
var path = inputs[0].Value;
foreach (var contentProvider in _contentProviders)
{
if (contentProvider.CanHandlePath(path))
if (await contentProvider.CanHandlePath(path))
{
var possibleContainer = await contentProvider.GetByPath(path);
if (possibleContainer is IContainer container)

View File

@@ -121,7 +121,7 @@ namespace FileTime.Avalonia.Services
{
foreach (var contentProvider in _contentProviders)
{
if (contentProvider.CanHandlePath(tab.Path))
if (await contentProvider.CanHandlePath(tab.Path))
{
pathItem = await contentProvider.GetByPath(tab.Path, true);
if (pathItem != null) break;