From 2a6a1885cd1ba74ed105d95c5c0c0228dc630865 Mon Sep 17 00:00:00 2001 From: Luke Lau Date: Tue, 5 Nov 2019 16:36:45 +0000 Subject: [PATCH] Update LSP options for new haskell-lsp --- src/Haskell/Ide/Engine/Transport/LspStdio.hs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Haskell/Ide/Engine/Transport/LspStdio.hs b/src/Haskell/Ide/Engine/Transport/LspStdio.hs index 52aa4b137..07860e11d 100644 --- a/src/Haskell/Ide/Engine/Transport/LspStdio.hs +++ b/src/Haskell/Ide/Engine/Transport/LspStdio.hs @@ -966,16 +966,14 @@ syncOptions = J.TextDocumentSyncOptions hieOptions :: [T.Text] -> Core.Options hieOptions commandIds = def { Core.textDocumentSync = Just syncOptions - , Core.completionProvider = Just (J.CompletionOptions (Just True) (Just ["."])) + , Core.completionKinds = Just ["."] -- As of 2018-05-24, vscode needs the commands to be registered -- otherwise they will not be available as codeActions (will be -- silently ignored, despite UI showing to the contrary). -- -- Hopefully the end May 2018 vscode release will stabilise -- this, it is a major rework of the machinery anyway. - , Core.executeCommandProvider = Just (J.ExecuteCommandOptions (J.List commandIds)) - , Core.renameProvider = Just (J.RenameOptions (Just True)) - , Core.implementationProvider = Just (J.GotoOptionsStatic True) + , Core.executeCommandCommands = commandIds }