@@ -160,7 +160,7 @@ type internal GoToDefinition(checker: FSharpChecker, projectInfoManager: FSharpP
160160
161161 let! _ , _ , checkFileResults = checker.ParseAndCheckDocument ( originDocument, projectOptions, sourceText= sourceText, userOpName= userOpName)
162162 let idRange = lexerSymbol.Ident.idRange
163- let! fsSymbolUse = checkFileResults.GetSymbolUseAtLocation ( fcsTextLineNumber, idRange.EndColumn, lineText, lexerSymbol.FullIsland, userOpName = userOpName )
163+ let! fsSymbolUse = checkFileResults.GetSymbolUseAtLocation ( fcsTextLineNumber, idRange.EndColumn, lineText, lexerSymbol.FullIsland)
164164 let symbol = fsSymbolUse.Symbol
165165 // if the tooltip was spawned in an implementation file and we have a range targeting
166166 // a signature file, try to find the corresponding implementation file and target the
@@ -172,7 +172,7 @@ type internal GoToDefinition(checker: FSharpChecker, projectInfoManager: FSharpP
172172 let! implSourceText = implDoc.GetTextAsync ()
173173 let! _parsingOptions , projectOptions = projectInfoManager.TryGetOptionsForEditingDocumentOrProject( implDoc, CancellationToken.None, userOpName)
174174 let! _ , _ , checkFileResults = checker.ParseAndCheckDocument ( implDoc, projectOptions, sourceText= implSourceText, userOpName= userOpName)
175- let! symbolUses = checkFileResults.GetUsesOfSymbolInFile symbol |> liftAsync
175+ let symbolUses = checkFileResults.GetUsesOfSymbolInFile symbol
176176 let! implSymbol = symbolUses |> Array.tryHead
177177 let! implTextSpan = RoslynHelpers.TryFSharpRangeToTextSpan ( implSourceText, implSymbol.RangeAlternate)
178178 return FSharpGoToDefinitionNavigableItem ( implDoc, implTextSpan)
@@ -193,7 +193,7 @@ type internal GoToDefinition(checker: FSharpChecker, projectInfoManager: FSharpP
193193 match checkFileAnswer with
194194 | FSharpCheckFileAnswer.Aborted -> return ! None
195195 | FSharpCheckFileAnswer.Succeeded checkFileResults ->
196- let! symbolUses = checkFileResults.GetUsesOfSymbolInFile targetSymbolUse.Symbol |> liftAsync
196+ let symbolUses = checkFileResults.GetUsesOfSymbolInFile targetSymbolUse.Symbol
197197 let! implSymbol = symbolUses |> Array.tryHead
198198 return implSymbol.RangeAlternate
199199 }
@@ -215,8 +215,8 @@ type internal GoToDefinition(checker: FSharpChecker, projectInfoManager: FSharpP
215215 let! lexerSymbol = Tokenizer.getSymbolAtPosition ( originDocument.Id, sourceText, position, originDocument.FilePath, defines, SymbolLookupKind.Greedy, false , false )
216216 let idRange = lexerSymbol.Ident.idRange
217217
218- let! declarations = checkFileResults.GetDeclarationLocation ( fcsTextLineNumber, lexerSymbol.Ident.idRange.EndColumn, textLine.ToString(), lexerSymbol.FullIsland, preferSignature, userOpName = userOpName ) |> liftAsync
219- let! targetSymbolUse = checkFileResults.GetSymbolUseAtLocation ( fcsTextLineNumber, idRange.EndColumn, lineText, lexerSymbol.FullIsland, userOpName = userOpName )
218+ let declarations = checkFileResults.GetDeclarationLocation ( fcsTextLineNumber, lexerSymbol.Ident.idRange.EndColumn, textLine.ToString(), lexerSymbol.FullIsland, preferSignature)
219+ let! targetSymbolUse = checkFileResults.GetSymbolUseAtLocation ( fcsTextLineNumber, idRange.EndColumn, lineText, lexerSymbol.FullIsland)
220220
221221 match declarations with
222222 | FSharpFindDeclResult.ExternalDecl ( assembly, targetExternalSym) ->
@@ -256,7 +256,7 @@ type internal GoToDefinition(checker: FSharpChecker, projectInfoManager: FSharpP
256256 let navItem = FSharpGoToDefinitionNavigableItem ( implDocument, implTextSpan)
257257 return ( navItem, idRange)
258258 else // jump from implementation to the corresponding signature
259- let! declarations = checkFileResults.GetDeclarationLocation ( fcsTextLineNumber, lexerSymbol.Ident.idRange.EndColumn, textLine.ToString(), lexerSymbol.FullIsland, true , userOpName = userOpName ) |> liftAsync
259+ let declarations = checkFileResults.GetDeclarationLocation ( fcsTextLineNumber, lexerSymbol.Ident.idRange.EndColumn, textLine.ToString(), lexerSymbol.FullIsland, true )
260260 match declarations with
261261 | FSharpFindDeclResult.DeclFound targetRange ->
262262 let! sigDocument = originDocument.Project.Solution.TryGetDocumentFromPath targetRange.FileName
0 commit comments