@@ -195,7 +195,7 @@ mkImportCompl enteredQual label =
195195 CompletionItem m (Just CiModule) (Just label)
196196 Nothing Nothing Nothing Nothing Nothing Nothing Nothing
197197 Nothing Nothing Nothing Nothing Nothing
198− where
198+ where
199199 m = fromMaybe "" (T.stripPrefix enteredQual label)
200200
201201mkExtCompl :: T.Text -> CompletionItem
@@ -303,7 +303,7 @@ toggleSnippets ClientCapabilities { _textDocument } (WithSnippets with) x
303303 | otherwise = x { _insertTextFormat = Just PlainText
304304 , _insertText = Nothing
305305 }
306− where supported = fromMaybe False (_textDocument >>= _completion >>= _completionItem >>= _snippetSupport)
306+ where supported = Just True == (_textDocument >>= _completion >>= _completionItem >>= _snippetSupport)
307307
308308-- | Returns the cached completions for the given module and position.
309309getCompletions :: IdeOptions -> CachedCompletions -> TypecheckedModule -> VFS.PosPrefixInfo -> ClientCapabilities -> WithSnippets -> IO [CompletionItem]
@@ -394,7 +394,7 @@ getCompletions ideOpts CC { allModNamesAsNS, unqualCompls, qualCompls, importabl
394394 = filtModNameCompls ++ map (toggleSnippets caps withSnippets
395395 . mkCompl ideOpts . stripAutoGenerated) filtCompls
396396 ++ filtKeywordCompls
397−
397+
398398 return result
399399
400400-- The supported languages and extensions
@@ -404,7 +404,7 @@ languagesAndExts = map T.pack $ DynFlags.supportedLanguagesAndExtensions ( Platf
404404#else
405405languagesAndExts = map T.pack DynFlags.supportedLanguagesAndExtensions
406406#endif
407−
407+
408408-- ---------------------------------------------------------------------
409409-- helper functions for pragmas
410410-- ---------------------------------------------------------------------