Skip to content

Commit 88584d9

Browse files
fixed goof
1 parent 21ba4ab commit 88584d9

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/Server/Matchers/ResolveCommandMatcher.cs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
namespace OmniSharp.Extensions.LanguageServer.Server.Matchers
1111
{
12-
public class ResolveCommandMatcher : IHandlerMatcher, IHandlerPostProcessorMatcher, IHandlerPreProcessor, IHandlerPostProcessor
12+
public class ResolveCommandMatcher : IHandlerMatcher, IHandlerPreProcessorMatcher, IHandlerPostProcessorMatcher, IHandlerPreProcessor, IHandlerPostProcessor
1313
{
1414
private readonly ILogger _logger;
1515
internal static string PrivateHandlerTypeName = "$$___handlerType___$$";
@@ -79,6 +79,17 @@ private static bool CanResolve<T>(ICanBeResolvedHandler<T> handler, T value)
7979
return handler.CanResolve(value);
8080
}
8181

82+
public IEnumerable<IHandlerPreProcessor> FindPreProcessor(ILspHandlerDescriptor descriptor, object parameters)
83+
{
84+
if (parameters is ICanBeResolved canBeResolved)
85+
{
86+
_logger.LogTrace("Using handler {Method}:{Handler}",
87+
descriptor.Method,
88+
descriptor.Handler.GetType().FullName);
89+
yield return this;
90+
}
91+
}
92+
8293
public IEnumerable<IHandlerPostProcessor> FindPostProcessor(ILspHandlerDescriptor descriptor, object parameters, object response)
8394
{
8495
if (descriptor.Method == DocumentNames.CodeLens || descriptor.Method == DocumentNames.Completion)

0 commit comments

Comments
 (0)