Skip to content

Commit 0e1c645

Browse files
committed
Use _code field
1 parent 5631e96 commit 0e1c645

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ghcide/src/Development/IDE/Core/Shake.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1232,8 +1232,9 @@ updateFileDiagnostics recorder fp ver k ShakeExtras{diagnostics, hiddenDiagnosti
12321232
LSP.PublishDiagnosticsParams (fromNormalizedUri uri) (fmap fromIntegral ver) (List newDiags)
12331233
return action
12341234
where
1235+
diagsFromRule :: Diagnostic -> Diagnostic
12351236
diagsFromRule c
1236-
| coerce ideTesting = c{_source = ((T.pack(show k) <> ":") <>) <$> _source c}
1237+
| coerce ideTesting = c{_code = Just $ InR $ T.pack(show k)}
12371238
| otherwise = c
12381239

12391240

0 commit comments

Comments
 (0)