File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed
test/FsAutoComplete.Tests.Lsp Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -709,6 +709,37 @@ let private typeHintTests state =
709709 let f (beta: int) = beta + 1
710710 """
711711 ]
712+ testCaseAsync " can show type for generic actual type" <|
713+ checkAllInMarkedRange server
714+ """
715+ open System.Collections.Generic
716+ $|let list$0 = List<int>()$|
717+ list.Add 2
718+ """
719+ [
720+ typeHint " List<int>"
721+ """
722+ open System.Collections.Generic
723+ let list: List<int> = List<int>()
724+ list.Add 2
725+ """
726+ ]
727+ ptestCaseAsync " can show type hint for nested inside generic actual type" <|
728+ checkAllInMarkedRange server
729+ """
730+ open System.Collections.Immutable
731+ $|let arr$0 = ImmutableArray.CreateBuilder()$|
732+ arr.Add 2
733+ """
734+ [
735+ //Currently: `ImmutableArray`1.Builder<int>`
736+ typeHint " ImmutableArray<int>.Builder"
737+ """
738+ open System.Collections.Immutable
739+ let arr: ImmutableArray<int>.Builder = ImmutableArray.CreateBuilder()
740+ arr.Add 2
741+ """
742+ ]
712743 ])
713744let private mixedHintTests state =
714745 serverTestList " inlay hints" state defaultConfigDto None ( fun server -> [
You can’t perform that action at this time.
0 commit comments