From 0e52890d5f81a089863c277078edd93d8c17ab46 Mon Sep 17 00:00:00 2001 From: Don Syme Date: Mon, 26 Sep 2022 19:57:17 +0100 Subject: [PATCH 1/2] fix go-to-definition to symbols in large files --- src/Compiler/Utilities/illib.fs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Compiler/Utilities/illib.fs b/src/Compiler/Utilities/illib.fs index 6eab1b08508..d3ecaa2a4d6 100644 --- a/src/Compiler/Utilities/illib.fs +++ b/src/Compiler/Utilities/illib.fs @@ -610,7 +610,7 @@ module ResizeArray = // * doing a block copy using `List.CopyTo(index, array, index, count)` (requires more copies to do the mapping) // none are significantly better. for i in 0 .. takeCount - 1 do - holder[i] <- f items[i] + holder[i] <- f items[startIndex+i] yield holder |] From 43c45b7a080eb08573ae0f692b766633a0f80920 Mon Sep 17 00:00:00 2001 From: Don Syme Date: Mon, 26 Sep 2022 20:07:19 +0100 Subject: [PATCH 2/2] fix go-to-definition to symbols in large files --- src/Compiler/Driver/CompilerImports.fs | 1 + src/Compiler/Utilities/illib.fs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Compiler/Driver/CompilerImports.fs b/src/Compiler/Driver/CompilerImports.fs index 56513446bd3..a329635b609 100644 --- a/src/Compiler/Driver/CompilerImports.fs +++ b/src/Compiler/Driver/CompilerImports.fs @@ -2142,6 +2142,7 @@ and [] TcImports CheckDisposed() let tcConfig = tcConfigP.Get ctok + let runMethod = match tcConfig.parallelReferenceResolution with | ParallelReferenceResolution.On -> NodeCode.Parallel diff --git a/src/Compiler/Utilities/illib.fs b/src/Compiler/Utilities/illib.fs index d3ecaa2a4d6..49cef8a36a9 100644 --- a/src/Compiler/Utilities/illib.fs +++ b/src/Compiler/Utilities/illib.fs @@ -610,7 +610,7 @@ module ResizeArray = // * doing a block copy using `List.CopyTo(index, array, index, count)` (requires more copies to do the mapping) // none are significantly better. for i in 0 .. takeCount - 1 do - holder[i] <- f items[startIndex+i] + holder[i] <- f items[startIndex + i] yield holder |]