File tree 1 file changed +3
-1
lines changed
ghcide/src/Development/IDE/Core
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ import qualified Development.IDE.Types.Logger as L
67
67
68
68
import qualified Data.Binary as B
69
69
import qualified Data.ByteString.Lazy as LBS
70
+ import Development.IDE.Core.IdeConfiguration (isWorkspaceFile )
70
71
import Language.LSP.Server hiding
71
72
(getVirtualFile )
72
73
import qualified Language.LSP.Server as LSP
@@ -129,7 +130,8 @@ getModificationTimeImpl vfs isWatched missingFileDiags file = do
129
130
mbVirtual <- liftIO $ getVirtualFile vfs $ filePathToUri' file
130
131
-- we use 'getVirtualFile' to discriminate FOIs so make that
131
132
-- dependency explicit by using the IsFileOfInterest rule
132
- _ <- use_ IsFileOfInterest file
133
+ isWF <- isWorkspaceFile file
134
+ when isWF $ void $ use_ IsFileOfInterest file
133
135
case mbVirtual of
134
136
Just (virtualFileVersion -> ver) -> do
135
137
alwaysRerun
You can’t perform that action at this time.
0 commit comments