@@ -96,7 +96,7 @@ getFileExistsRule vfs =
9696 defineEarlyCutoff $ \GetFileExists file -> do
9797 alwaysRerun
9898 res <- liftIO $ handle (\(_ :: IOException) -> return False) $
99− (isJust <$> getVirtualFile vfs (filePathToUri file)) ||^
99+ (isJust <$> getVirtualFile vfs (filePathToUri' file)) ||^
100100 Dir.doesFileExist file
101101 return (Just $ if res then BS.singleton '1' else BS.empty, ([], Just res))
102102
@@ -109,7 +109,7 @@ getModificationTimeRule vfs =
109109 defineEarlyCutoff $ \GetModificationTime file -> do
110110 let wrap time = (Just $ BS.pack $ showTimePrecise time, ([], Just $ ModificationTime time))
111111 alwaysRerun
112− mbVirtual <- liftIO $ getVirtualFile vfs $ filePathToUri file
112+ mbVirtual <- liftIO $ getVirtualFile vfs $ filePathToUri' file
113113 case mbVirtual of
114114 Just (VirtualFile ver _ _) -> pure (Just $ BS.pack $ show ver, ([], Just $ VFSVersion ver))
115115 Nothing -> liftIO $ fmap wrap (Dir.getModificationTime file) `catch` \(e :: IOException) -> do
@@ -124,7 +124,7 @@ getFileContentsRule vfs =
124124 -- need to depend on modification time to introduce a dependency with Cutoff
125125 time <- use_ GetModificationTime file
126126 res <- liftIO $ ideTryIOException file $ do
127− mbVirtual <- getVirtualFile vfs $ filePathToUri file
127+ mbVirtual <- getVirtualFile vfs $ filePathToUri' file
128128 case mbVirtual of
129129 Just (VirtualFile _ rope _) -> return $ textToStringBuffer $ Rope.toText rope
130130 Nothing -> hGetStringBuffer file
@@ -157,8 +157,8 @@ setBufferModified :: IdeState -> FilePath -> Maybe T.Text -> IO ()
157157setBufferModified state absFile mbContents = do
158158 VFSHandle{..} <- getIdeGlobalState state
159159 case mbContents of
160− Nothing -> removeVirtualFile (filePathToUri absFile)
161− Just contents -> setVirtualFileContents (filePathToUri absFile) contents
160+ Nothing -> removeVirtualFile (filePathToUri' absFile)
161+ Just contents -> setVirtualFileContents (filePathToUri' absFile) contents
162162 void $ shakeRun state []
163163
164164