File tree Expand file tree Collapse file tree 1 file changed +19
-34
lines changed
plugins/default/src/Ide/Plugin Expand file tree Collapse file tree 1 file changed +19
-34
lines changed Original file line number Diff line number Diff line change 11{-# LANGUAGE DeriveAnyClass #-}
22{-# LANGUAGE DeriveGeneric #-}
33{-# LANGUAGE OverloadedStrings #-}
4+ {-# LANGUAGE DuplicateRecordFields #-}
45
56-- | Provides code actions to add missing pragmas (whenever GHC suggests to)
67module Ide.Plugin.Pragmas
@@ -182,38 +183,22 @@ completion lspFuncs _ide complParams = do
182183 = Completions $ List []
183184 result Nothing = Completions $ List []
184185 buildCompletion p =
185- CompletionItem
186- label
187- kind
188- tags
189- detail
190- documentation
191- deprecated
192- preselect
193- sortText
194- filterText
195- insertText
196- insertTextFormat
197- textEdit
198- additionalTextEdits
199- commitCharacters
200- command
201- xd
202- where
203- label = p
204- kind = Nothing
205- tags = List []
206- detail = Nothing
207- documentation = Nothing
208- deprecated = Nothing
209- preselect = Nothing
210- sortText = Nothing
211- filterText = Nothing
212- insertText = Nothing
213- insertTextFormat = Nothing
214- textEdit = Nothing
215- additionalTextEdits = Nothing
216- commitCharacters = Nothing
217- command = Nothing
218- xd = Nothing
186+ CompletionItem
187+ { _label = p,
188+ _kind = Nothing ,
189+ _tags = List [] ,
190+ _detail = Nothing ,
191+ _documentation = Nothing ,
192+ _deprecated = Nothing ,
193+ _preselect = Nothing ,
194+ _sortText = Nothing ,
195+ _filterText = Nothing ,
196+ _insertText = Nothing ,
197+ _insertTextFormat = Nothing ,
198+ _textEdit = Nothing ,
199+ _additionalTextEdits = Nothing ,
200+ _commitCharacters = Nothing ,
201+ _command = Nothing ,
202+ _xdata = Nothing
203+ }
219204 _ -> return $ Completions $ List []
You can’t perform that action at this time.
0 commit comments