@@ -180,7 +180,7 @@ type internal GoToDefinition(checker: FSharpChecker, projectInfoManager: FSharpP
180180
181181 let! _ , _ , checkFileResults = checker.ParseAndCheckDocument ( originDocument, projectOptions, sourceText= sourceText, userOpName= userOpName)
182182 let idRange = lexerSymbol.Ident.idRange
183- let! fsSymbolUse = checkFileResults.GetSymbolUseAtLocation ( fcsTextLineNumber, idRange.EndColumn, lineText, lexerSymbol.FullIsland, userOpName = userOpName )
183+ let! fsSymbolUse = checkFileResults.GetSymbolUseAtLocation ( fcsTextLineNumber, idRange.EndColumn, lineText, lexerSymbol.FullIsland)
184184 let symbol = fsSymbolUse.Symbol
185185 // if the tooltip was spawned in an implementation file and we have a range targeting
186186 // a signature file, try to find the corresponding implementation file and target the
@@ -192,7 +192,7 @@ type internal GoToDefinition(checker: FSharpChecker, projectInfoManager: FSharpP
192192 let! implSourceText = implDoc.GetTextAsync ()
193193 let! _parsingOptions , projectOptions = projectInfoManager.TryGetOptionsForEditingDocumentOrProject( implDoc, CancellationToken.None, userOpName)
194194 let! _ , _ , checkFileResults = checker.ParseAndCheckDocument ( implDoc, projectOptions, sourceText= implSourceText, userOpName= userOpName)
195- let! symbolUses = checkFileResults.GetUsesOfSymbolInFile symbol |> liftAsync
195+ let symbolUses = checkFileResults.GetUsesOfSymbolInFile symbol
196196 let! implSymbol = symbolUses |> Array.tryHead
197197 let! implTextSpan = RoslynHelpers.TryFSharpRangeToTextSpan ( implSourceText, implSymbol.RangeAlternate)
198198 return FSharpGoToDefinitionNavigableItem ( implDoc, implTextSpan)
@@ -213,7 +213,7 @@ type internal GoToDefinition(checker: FSharpChecker, projectInfoManager: FSharpP
213213 match checkFileAnswer with
214214 | FSharpCheckFileAnswer.Aborted -> return ! None
215215 | FSharpCheckFileAnswer.Succeeded checkFileResults ->
216- let! symbolUses = checkFileResults.GetUsesOfSymbolInFile targetSymbolUse.Symbol |> liftAsync
216+ let symbolUses = checkFileResults.GetUsesOfSymbolInFile targetSymbolUse.Symbol
217217 let! implSymbol = symbolUses |> Array.tryHead
218218 return implSymbol.RangeAlternate
219219 }
@@ -235,8 +235,8 @@ type internal GoToDefinition(checker: FSharpChecker, projectInfoManager: FSharpP
235235 let! lexerSymbol = Tokenizer.getSymbolAtPosition ( originDocument.Id, sourceText, position, originDocument.FilePath, defines, SymbolLookupKind.Greedy, false , false )
236236 let idRange = lexerSymbol.Ident.idRange
237237
238- let! declarations = checkFileResults.GetDeclarationLocation ( fcsTextLineNumber, lexerSymbol.Ident.idRange.EndColumn, textLine.ToString(), lexerSymbol.FullIsland, preferSignature, userOpName = userOpName ) |> liftAsync
239- let! targetSymbolUse = checkFileResults.GetSymbolUseAtLocation ( fcsTextLineNumber, idRange.EndColumn, lineText, lexerSymbol.FullIsland, userOpName = userOpName )
238+ let declarations = checkFileResults.GetDeclarationLocation ( fcsTextLineNumber, lexerSymbol.Ident.idRange.EndColumn, textLine.ToString(), lexerSymbol.FullIsland, preferSignature)
239+ let! targetSymbolUse = checkFileResults.GetSymbolUseAtLocation ( fcsTextLineNumber, idRange.EndColumn, lineText, lexerSymbol.FullIsland)
240240
241241 match declarations with
242242 | FSharpFindDeclResult.ExternalDecl ( assembly, targetExternalSym) ->
@@ -276,7 +276,7 @@ type internal GoToDefinition(checker: FSharpChecker, projectInfoManager: FSharpP
276276 let navItem = FSharpGoToDefinitionNavigableItem ( implDocument, implTextSpan)
277277 return ( navItem, idRange)
278278 else // jump from implementation to the corresponding signature
279- let! declarations = checkFileResults.GetDeclarationLocation ( fcsTextLineNumber, lexerSymbol.Ident.idRange.EndColumn, textLine.ToString(), lexerSymbol.FullIsland, true , userOpName = userOpName ) |> liftAsync
279+ let declarations = checkFileResults.GetDeclarationLocation ( fcsTextLineNumber, lexerSymbol.Ident.idRange.EndColumn, textLine.ToString(), lexerSymbol.FullIsland, true )
280280 match declarations with
281281 | FSharpFindDeclResult.DeclFound targetRange ->
282282 let! sigDocument = originDocument.Project.Solution.TryGetDocumentFromPath targetRange.FileName
0 commit comments