Skip to content

Commit

Permalink
Fixes #167 (undoes #164)
Browse files Browse the repository at this point in the history
  • Loading branch information
whatatripp committed Nov 29, 2021
1 parent b1eb8a0 commit 047b7a8
Showing 1 changed file with 1 addition and 4 deletions.
Expand Up @@ -11,10 +11,7 @@ internal sealed class TextTemplateRaftSuggestionProvider : ISuggestionProvider
{
public Task<IEnumerable<string>> GetSuggestionsAsync(IComponentConfiguration config)
{
var items = SDK.GetRaftItems(RaftItemType.TextTemplate, config.EditorContext).Select(i => i.Name);
var globalItems = SDK.GetRaftItems(RaftItemType.TextTemplate, null).Select(i => $"global::{i.Name}");

return Task.FromResult(items.Concat(globalItems));
return Task.FromResult(SDK.GetRaftItems(RaftItemType.TextTemplate, config.EditorContext).Select(i => i.Id));
}
}
}

0 comments on commit 047b7a8

Please sign in to comment.