Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
yert
  • Loading branch information
cartermp committed Mar 22, 2019
commit 4adf5513ecfa86a4bf9428a78f9979ca694d86a6
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ type internal FSharpNavigableSymbolSource(checkerProvider: FSharpCheckerProvider
try
// This call to Wait() is fine because we want to be able to provide the error message in the status bar.
gtdTask.Wait()
statusBar.Clear()

if gtdTask.Status = TaskStatus.RanToCompletion && gtdTask.Result.IsSome then
let navigableItem, range = gtdTask.Result.Value
Expand All @@ -62,8 +63,6 @@ type internal FSharpNavigableSymbolSource(checkerProvider: FSharpCheckerProvider
let declarationSpan = Span(declarationTextSpan.Start, declarationTextSpan.Length)
let symbolSpan = SnapshotSpan(snapshot, declarationSpan)

statusBar.Clear()

return FSharpNavigableSymbol(navigableItem, symbolSpan, gtd, statusBar) :> INavigableSymbol
else
statusBar.TempMessage(SR.CannotDetermineSymbol())
Expand Down