@@ -96,7 +96,7 @@ getFileExistsRule vfs =
96 defineEarlyCutoff $ \GetFileExists file -> do
96 defineEarlyCutoff $ \GetFileExists file -> do
97 alwaysRerun
97 alwaysRerun
98 res <- liftIO $ handle (\(_ :: IOException) -> return False) $
98 res <- liftIO $ handle (\(_ :: IOException) -> return False) $
99− (isJust <$> getVirtualFile vfs (filePathToUri file)) ||^
99+ (isJust <$> getVirtualFile vfs (filePathToUri' file)) ||^
100 Dir.doesFileExist file
100 Dir.doesFileExist file
101 return (Just $ if res then BS.singleton '1' else BS.empty, ([], Just res))
101 return (Just $ if res then BS.singleton '1' else BS.empty, ([], Just res))
@@ -109,7 +109,7 @@ getModificationTimeRule vfs =
109 defineEarlyCutoff $ \GetModificationTime file -> do
109 defineEarlyCutoff $ \GetModificationTime file -> do
110 let wrap time = (Just $ BS.pack $ showTimePrecise time, ([], Just $ ModificationTime time))
110 let wrap time = (Just $ BS.pack $ showTimePrecise time, ([], Just $ ModificationTime time))
111 alwaysRerun
111 alwaysRerun
112− mbVirtual <- liftIO $ getVirtualFile vfs $ filePathToUri file
112+ mbVirtual <- liftIO $ getVirtualFile vfs $ filePathToUri' file
113 case mbVirtual of
113 case mbVirtual of
114 Just (VirtualFile ver _ _) -> pure (Just $ BS.pack $ show ver, ([], Just $ VFSVersion ver))
114 Just (VirtualFile ver _ _) -> pure (Just $ BS.pack $ show ver, ([], Just $ VFSVersion ver))
115 Nothing -> liftIO $ fmap wrap (Dir.getModificationTime file) `catch` \(e :: IOException) -> do
115 Nothing -> liftIO $ fmap wrap (Dir.getModificationTime file) `catch` \(e :: IOException) -> do
@@ -124,7 +124,7 @@ getFileContentsRule vfs =
124 -- need to depend on modification time to introduce a dependency with Cutoff
124 -- need to depend on modification time to introduce a dependency with Cutoff
125 time <- use_ GetModificationTime file
125 time <- use_ GetModificationTime file
126 res <- liftIO $ ideTryIOException file $ do
126 res <- liftIO $ ideTryIOException file $ do
127− mbVirtual <- getVirtualFile vfs $ filePathToUri file
127+ mbVirtual <- getVirtualFile vfs $ filePathToUri' file
128 case mbVirtual of
128 case mbVirtual of
129 Just (VirtualFile _ rope _) -> return $ textToStringBuffer $ Rope.toText rope
129 Just (VirtualFile _ rope _) -> return $ textToStringBuffer $ Rope.toText rope
130 Nothing -> hGetStringBuffer file
130 Nothing -> hGetStringBuffer file
@@ -157,8 +157,8 @@ setBufferModified :: IdeState -> FilePath -> Maybe T.Text -> IO ()
157setBufferModified state absFile mbContents = do
157setBufferModified state absFile mbContents = do
158 VFSHandle{..} <- getIdeGlobalState state
158 VFSHandle{..} <- getIdeGlobalState state
159 case mbContents of
159 case mbContents of
160− Nothing -> removeVirtualFile (filePathToUri absFile)
160+ Nothing -> removeVirtualFile (filePathToUri' absFile)
161− Just contents -> setVirtualFileContents (filePathToUri absFile) contents
161+ Just contents -> setVirtualFileContents (filePathToUri' absFile) contents
162 void $ shakeRun state []
162 void $ shakeRun state []