@@ -23,7 +23,6 @@ import Language.Haskell.LSP.Types
2323
2424import qualified Language.Haskell.LSP.Core as LSP
2525import qualified Language.Haskell.LSP.VFS as VFS
26- import Development.IDE.Core.Shake (ShakeExtras (logger ))
2726
2827-- ---------------------------------------------------------------------
2928
@@ -166,24 +165,14 @@ possiblePragmas =
166165
167166-- ---------------------------------------------------------------------
168167
169- logStuff :: IdeState -> T. Text -> IO ()
170- logStuff ide = logInfo (logger (shakeExtras ide))
171-
172168completion :: CompletionProvider
173169completion lspFuncs _ide complParams = do
174170 let (TextDocumentIdentifier uri) = complParams ^. J. textDocument
175171 position = complParams ^. J. position
176- logStuff _ide (T. pack " test ---------------------......." )
177- putStrLn $ " Uri" ++ show uri
178- putStrLn $ " nor uri" ++ show (toNormalizedUri uri)
179- logStuff _ide (T. pack " --------------------------------......." )
180172 contents <- LSP. getVirtualFileFunc lspFuncs $ toNormalizedUri uri
181173 fmap Right $ case (contents, uriToFilePath' uri) of
182174 (Just cnts, Just _path) -> do
183175 pfix <- VFS. getCompletionPrefix position cnts
184- logStuff _ide (T. pack " test &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&......." )
185- logStuff _ide $ " pfix" <> (T. pack. show $ pfix)
186- logStuff _ide (T. pack " test &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&......." )
187176 return $ result pfix
188177 where
189178 result (Just pfix)
0 commit comments