-
-
Notifications
You must be signed in to change notification settings - Fork 399
Closed
Labels
old_type: distributionperformanceIssues about memory consumption, responsiveness, etc.Issues about memory consumption, responsiveness, etc.
Description
There are at least two dependencies that block this migration:
lsp-types
: Migration to text 2.0 lsp#391bytestring-encoding
: Support text 2.0 msakai/bytestring-encoding#6
The first one is obviously a hard requirement, but for the second one there's only one call site so we could consider dropping it:
haskell-language-server/ghcide/src/Development/IDE/Core/Rules.hs
Lines 525 to 537 in d48a1df
persistentHieFileRule :: Rules () | |
persistentHieFileRule = addPersistentRule GetHieAst $ \file -> runMaybeT $ do | |
res <- readHieFileForSrcFromDisk file | |
vfs <- asks vfs | |
encoding <- liftIO getLocaleEncoding | |
(currentSource,ver) <- liftIO $ do | |
mvf <- getVirtualFile vfs $ filePathToUri' file | |
case mvf of | |
Nothing -> (,Nothing) . T.decode encoding <$> BS.readFile (fromNormalizedFilePath file) | |
Just vf -> pure (Rope.toText $ _text vf, Just $ _lsp_version vf) | |
let refmap = Compat.generateReferencesMap . Compat.getAsts . Compat.hie_asts $ res | |
del = deltaFromDiff (T.decode encoding $ Compat.hie_hs_src res) currentSource | |
pure (HAR (Compat.hie_module res) (Compat.hie_asts res) refmap mempty (HieFromDisk res),del,ver) |
Metadata
Metadata
Assignees
Labels
old_type: distributionperformanceIssues about memory consumption, responsiveness, etc.Issues about memory consumption, responsiveness, etc.