File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
ghcide/src/Development/IDE/Core Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -455,7 +455,7 @@ recordDirtyKeys
455
455
recordDirtyKeys ShakeExtras {dirtyKeys} key file = do
456
456
modifyTVar' dirtyKeys $ \ x -> foldl' (flip HSet. insert) x (toKey key <$> file)
457
457
return $ withEventTrace " recordDirtyKeys" $ \ addEvent -> do
458
- addEvent (fromString $ " dirty " <> show key) (fromString $ unlines $ map fromNormalizedFilePath file)
458
+ addEvent (fromString $ unlines $ " dirty " <> show key : map fromNormalizedFilePath file)
459
459
460
460
-- | We return Nothing if the rule has not run and Just Failed if it has failed to produce a value.
461
461
getValues ::
Original file line number Diff line number Diff line change @@ -71,11 +71,11 @@ import qualified StmContainers.Map as STM
71
71
#if MIN_VERSION_ghc(8,8,0)
72
72
otTracedProvider :: MonadUnliftIO m => PluginId -> ByteString -> m a -> m a
73
73
otTracedGarbageCollection :: (MonadMask f , MonadIO f , Show a ) => ByteString -> f [a ] -> f [a ]
74
- withEventTrace :: (MonadMask m , MonadIO m ) => String -> ((ByteString -> ByteString -> m () ) -> m a ) -> m a
74
+ withEventTrace :: (MonadMask m , MonadIO m ) => String -> ((ByteString -> m () ) -> m a ) -> m a
75
75
#else
76
76
otTracedProvider :: MonadUnliftIO m => PluginId -> String -> m a -> m a
77
77
otTracedGarbageCollection :: (MonadMask f , MonadIO f , Show a ) => String -> f [a ] -> f [a ]
78
- withEventTrace :: (MonadMask m , MonadIO m ) => String -> ((String -> ByteString -> m () ) -> m a ) -> m a
78
+ withEventTrace :: (MonadMask m , MonadIO m ) => String -> ((ByteString -> m () ) -> m a ) -> m a
79
79
#endif
80
80
81
81
withTrace :: (MonadMask m , MonadIO m ) =>
@@ -90,8 +90,8 @@ withTrace name act
90
90
withEventTrace name act
91
91
| userTracingEnabled
92
92
= withSpan (fromString name) $ \ sp -> do
93
- act (addEvent sp)
94
- | otherwise = act (\ _ _ -> pure () )
93
+ act (addEvent sp " " )
94
+ | otherwise = act (\ _ -> pure () )
95
95
96
96
-- | Returns a logger that produces telemetry events in a single span
97
97
withTelemetryLogger :: (MonadIO m , MonadMask m ) => (Logger -> m a ) -> m a
You can’t perform that action at this time.
0 commit comments