File tree 2 files changed +5
-4
lines changed 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -180,8 +180,9 @@ data Message
180
180
181
181
182
182
modifyOptions :: LSP. Options -> LSP. Options
183
- modifyOptions x = x{LSP. textDocumentSync = Just $ tweak orig}
183
+ modifyOptions x = x{ LSP. textDocumentSync = Just $ tweakTDS origTDS
184
+ , LSP. codeActionProvider = Just $ CodeActionOptionsStatic True }
184
185
where
185
- tweak x = x {_openClose= Just True , _change= Just TdSyncIncremental , _save= Just $ SaveOptions Nothing }
186
- orig = fromMaybe tdsDefault $ LSP. textDocumentSync x
186
+ tweakTDS tds = tds {_openClose= Just True , _change= Just TdSyncIncremental , _save= Just $ SaveOptions Nothing }
187
+ origTDS = fromMaybe tdsDefault $ LSP. textDocumentSync x
187
188
tdsDefault = TextDocumentSyncOptions Nothing Nothing Nothing Nothing Nothing
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ initializeResponseTests = withResource acquire release tests where
58
58
, chk " NO doc highlight" _documentHighlightProvider Nothing
59
59
, chk " NO doc symbol" _documentSymbolProvider Nothing
60
60
, chk " NO workspace symbol" _workspaceSymbolProvider Nothing
61
- , chk " NO code action" _codeActionProvider Nothing -- available but not declared !
61
+ , chk " code action" _codeActionProvider $ Just $ CodeActionOptionsStatic True
62
62
, chk " NO code lens" _codeLensProvider Nothing
63
63
, chk " NO doc formatting" _documentFormattingProvider Nothing
64
64
, chk " NO doc range formatting"
You can’t perform that action at this time.
0 commit comments