Skip to content

Commit

Permalink
fixed an bug in AddTextDocumentIdentifier where it would not register…
Browse files Browse the repository at this point in the history
… the correct type (#251)
  • Loading branch information
david-driscoll authored Jun 2, 2020
1 parent 21f56ec commit 43e946c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Protocol/LanguageProtocolRpcOptionsBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public T AddTextDocumentIdentifier(params ITextDocumentIdentifier[] handlers)
{
foreach (var item in handlers)
{
Services.AddSingleton(typeof(ITextDocumentIdentifier), handlers);
Services.AddSingleton(typeof(ITextDocumentIdentifier), item);
}

return (T) (object) this;
Expand Down

0 comments on commit 43e946c

Please sign in to comment.