Skip to content

Commit 7fefe95

Browse files
committed
Remove logging.
1 parent f0b0499 commit 7fefe95

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

plugins/default/src/Ide/Plugin/Pragmas.hs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import Language.Haskell.LSP.Types
2323

2424
import qualified Language.Haskell.LSP.Core as LSP
2525
import 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-
172168
completion :: CompletionProvider
173169
completion 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

Comments
 (0)