Skip to content

Commit

Permalink
remove debugging traces
Browse files Browse the repository at this point in the history
  • Loading branch information
pepeiborra committed Jan 16, 2022
1 parent 96ac5b3 commit 01c60ad
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions plugins/hls-rename-plugin/src/Ide/Plugin/Rename.hs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ import GHC.Types.Name
#else
import Name
#endif
import Debug.Trace
import Development.IDE.GHC.ExactPrint (GetAnnotatedParsedSource (GetAnnotatedParsedSource))
import HieDb.Query
import Ide.Plugin.Config
Expand All @@ -52,16 +51,10 @@ renameProvider state pluginId (RenameParams (TextDocumentIdentifier uri) pos _pr
response $ do
nfp <- safeUriToNfp uri
oldName <- getNameAtPos state nfp pos
traceM $ "oldName: " <> prettyPrint oldName
workspaceRefs <- refsAtName state nfp oldName
traceM $ "workspaceRefs: " <> show workspaceRefs
let filesRefs = groupOn locToUri workspaceRefs
getFileEdits = ap (getSrcEdits state . renameModRefs newNameText) (locToUri . head)

traceM $ "\nfilesRefs: " <> show filesRefs

fileEdits <- mapM getFileEdits filesRefs
traceM $ "\nfileEdits: " <> show fileEdits
pure $ foldl' (<>) mempty fileEdits

-------------------------------------------------------------------------------
Expand Down

0 comments on commit 01c60ad

Please sign in to comment.