on master help sign in
Expose codeAction and codeLens providers for haskell-language-server (#499)

* Expose codeAction and codeLens providers for haskell-language-server Also tweak the code action reply type to generate well-formed JSON * Expose moduleOutline for symbolProvider in hls too * Revert to using [CAResult] rather than List CAResult

commit116a5baee187394cd5cde4f2aeaac1e3bab0224c authorAlan Zimmerman <alan.zimm@gmail.com> dateTue 24 Mar 2020, 11:40 (7 years ago) parent9ccd9ee
3 files changed+12−2
ghcide.cabal+1−1 src/Development/IDE/LSP/Outline.hs+2 src/Development/IDE/Plugin/CodeAction.hs+9−1
ghcide.cabal+1−1
@@ -114,6 +114,7 @@ library
114114 Development.IDE.Import.DependencyInformation
115115 Development.IDE.LSP.HoverDefinition
116116 Development.IDE.LSP.LanguageServer
117+ Development.IDE.LSP.Outline
117118 Development.IDE.LSP.Protocol
118119 Development.IDE.LSP.Server
119120 Development.IDE.Spans.Common
@@ -134,7 +135,6 @@ library
134135 Development.IDE.GHC.Warnings
135136 Development.IDE.Import.FindImports
136137 Development.IDE.LSP.Notifications
137− Development.IDE.LSP.Outline
138138 Development.IDE.Spans.AtPoint
139139 Development.IDE.Spans.Calculate
140140 Development.IDE.Spans.Documentation
src/Development/IDE/LSP/Outline.hs+2
@@ -4,6 +4,8 @@
44
55module Development.IDE.LSP.Outline
66 ( setHandlersOutline
7+ -- * For haskell-language-server
8+ , moduleOutline
79 )
810where
911
src/Development/IDE/Plugin/CodeAction.hs+9−1
@@ -6,7 +6,15 @@
66#include "ghc-api-version.h"
77
88-- | Go to the definition of a variable.
9−module Development.IDE.Plugin.CodeAction(plugin) where
9+module Development.IDE.Plugin.CodeAction
10+ (
11+ plugin
12+
13+ -- * For haskell-language-server
14+ , codeAction
15+ , codeLens
16+ , rulePackageExports
17+ ) where
1018
1119import Language.Haskell.LSP.Types
1220import Control.Monad (join)