@@ -23,7 +23,6 @@ import Language.Haskell.LSP.Types
23
23
24
24
import qualified Language.Haskell.LSP.Core as LSP
25
25
import qualified Language.Haskell.LSP.VFS as VFS
26
- import Development.IDE.Core.Shake (ShakeExtras (logger ))
27
26
28
27
-- ---------------------------------------------------------------------
29
28
@@ -166,24 +165,14 @@ possiblePragmas =
166
165
167
166
-- ---------------------------------------------------------------------
168
167
169
- logStuff :: IdeState -> T. Text -> IO ()
170
- logStuff ide = logInfo (logger (shakeExtras ide))
171
-
172
168
completion :: CompletionProvider
173
169
completion lspFuncs _ide complParams = do
174
170
let (TextDocumentIdentifier uri) = complParams ^. J. textDocument
175
171
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 " --------------------------------......." )
180
172
contents <- LSP. getVirtualFileFunc lspFuncs $ toNormalizedUri uri
181
173
fmap Right $ case (contents, uriToFilePath' uri) of
182
174
(Just cnts, Just _path) -> do
183
175
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 &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&......." )
187
176
return $ result pfix
188
177
where
189
178
result (Just pfix)
0 commit comments