Skip to content

Commit 43e946c

Browse files
fixed an bug in AddTextDocumentIdentifier where it would not register the correct type (#251)
1 parent 21f56ec commit 43e946c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Protocol/LanguageProtocolRpcOptionsBase.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public T AddTextDocumentIdentifier(params ITextDocumentIdentifier[] handlers)
1313
{
1414
foreach (var item in handlers)
1515
{
16-
Services.AddSingleton(typeof(ITextDocumentIdentifier), handlers);
16+
Services.AddSingleton(typeof(ITextDocumentIdentifier), item);
1717
}
1818

1919
return (T) (object) this;

0 commit comments

Comments
 (0)