Skip to content

Commit

Permalink
Bump haskell-lsp to 0.23 (haskell#1146)
Browse files Browse the repository at this point in the history
* Bump haskell-lsp to 0.23

* Update extra-deps

Co-authored-by: Pepe Iborra <pepeiborra@gmail.com>
Co-authored-by: Junyoung Clare Jang <jjc9310@gmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
4 people committed Jan 9, 2021
1 parent 9d02d88 commit d760652
Show file tree
Hide file tree
Showing 17 changed files with 33 additions and 23 deletions.
4 changes: 2 additions & 2 deletions ghcide/ghcide.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ library
Glob,
haddock-library >= 1.8,
hashable,
haskell-lsp-types == 0.22.*,
haskell-lsp == 0.22.*,
haskell-lsp-types == 0.23.*,
haskell-lsp == 0.23.*,
hie-compat,
hls-plugin-api >= 0.6,
lens,
Expand Down
12 changes: 6 additions & 6 deletions ghcide/src/Development/IDE/Plugin/Completions/Logic.hs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ mkCompl :: IdeOptions -> CompItem -> CompletionItem
mkCompl IdeOptions{..} CI{compKind,insertText, importedFrom,typeText,label,docs, additionalTextEdits} =
CompletionItem {_label = label,
_kind = kind,
_tags = List [],
_tags = Nothing,
_detail = (colon <>) <$> typeText,
_documentation = documentation,
_deprecated = Nothing,
Expand Down Expand Up @@ -237,27 +237,27 @@ mkNameCompItem origName origMod thingType isInfix docs !imp = CI{..}

mkModCompl :: T.Text -> CompletionItem
mkModCompl label =
CompletionItem label (Just CiModule) (List []) Nothing
CompletionItem label (Just CiModule) Nothing Nothing
Nothing Nothing Nothing Nothing Nothing Nothing Nothing
Nothing Nothing Nothing Nothing Nothing

mkImportCompl :: T.Text -> T.Text -> CompletionItem
mkImportCompl enteredQual label =
CompletionItem m (Just CiModule) (List []) (Just label)
CompletionItem m (Just CiModule) Nothing (Just label)
Nothing Nothing Nothing Nothing Nothing Nothing Nothing
Nothing Nothing Nothing Nothing Nothing
where
m = fromMaybe "" (T.stripPrefix enteredQual label)

mkExtCompl :: T.Text -> CompletionItem
mkExtCompl label =
CompletionItem label (Just CiKeyword) (List []) Nothing
CompletionItem label (Just CiKeyword) Nothing Nothing
Nothing Nothing Nothing Nothing Nothing Nothing Nothing
Nothing Nothing Nothing Nothing Nothing

mkPragmaCompl :: T.Text -> T.Text -> CompletionItem
mkPragmaCompl label insertText =
CompletionItem label (Just CiKeyword) (List []) Nothing
CompletionItem label (Just CiKeyword) Nothing Nothing
Nothing Nothing Nothing Nothing Nothing (Just insertText) (Just Snippet)
Nothing Nothing Nothing Nothing Nothing

Expand All @@ -272,7 +272,7 @@ extendImportList name lDecl = let
-- use to same start_pos to handle situation where we do not have latest edits due to caching of Rules
new_range = Range new_start_pos new_start_pos
-- we cannot wrap mapM_ inside (mapM_) but we need to wrap (<$)
alpha = all isAlphaNum $ filter (\c -> c /= '_') name
alpha = all isAlphaNum $ filter (/= '_') name
result = if alpha then name ++ ", "
else "(" ++ name ++ "), "
in Just [TextEdit new_range (T.pack result)]
Expand Down
4 changes: 2 additions & 2 deletions haskell-language-server.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ library
, ghc
, ghcide >=0.7
, gitrev
, haskell-lsp ^>=0.22
, haskell-lsp ^>=0.23
, hls-plugin-api >=0.6
, hslogger
, optparse-applicative
Expand Down Expand Up @@ -294,7 +294,7 @@ executable haskell-language-server
, ghcide
, hashable
, haskell-language-server
, haskell-lsp ^>=0.22
, haskell-lsp ^>=0.23
, lens
, regex-tdfa
, hslogger
Expand Down
2 changes: 1 addition & 1 deletion hls-plugin-api/hls-plugin-api.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ library
, containers
, data-default
, Diff
, haskell-lsp ^>=0.22
, haskell-lsp ^>=0.23
, hashable
, hslogger
, lens
Expand Down
2 changes: 1 addition & 1 deletion plugins/default/src/Ide/Plugin/Example.hs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ completion _lf _ide (CompletionParams _doc _pos _mctxt _mt)
command xd
label = "Example completion"
kind = Nothing
tags = List []
tags = Nothing
detail = Nothing
documentation = Nothing
deprecated = Nothing
Expand Down
2 changes: 1 addition & 1 deletion plugins/default/src/Ide/Plugin/Example2.hs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ completion _lf _ide (CompletionParams _doc _pos _mctxt _mt)
command xd
label = "Example2 completion"
kind = Nothing
tags = List []
tags = Nothing
detail = Nothing
documentation = Nothing
deprecated = Nothing
Expand Down
2 changes: 1 addition & 1 deletion plugins/default/src/Ide/Plugin/Pragmas.hs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ completion lspFuncs _ide complParams = do
CompletionItem
{ _label = p,
_kind = Just CiKeyword,
_tags = List [],
_tags = Nothing,
_detail = Nothing,
_documentation = Nothing,
_deprecated = Nothing,
Expand Down
2 changes: 1 addition & 1 deletion plugins/tactics/hls-tactics-plugin.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ library
, ghc-exactprint
, ghc-source-gen
, ghcide >=0.1
, haskell-lsp ^>=0.22
, haskell-lsp ^>=0.23
, hls-plugin-api
, hls-exactprint-utils
, lens
Expand Down
2 changes: 2 additions & 0 deletions stack-8.10.1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ extra-deps:
- stylish-haskell-0.12.2.0
- semigroups-0.18.5
- temporary-1.2.1.1
- haskell-lsp-0.23.0.0
- haskell-lsp-types-0.23.0.0

configure-options:
ghcide:
Expand Down
2 changes: 2 additions & 0 deletions stack-8.10.2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ extra-deps:
- stylish-haskell-0.12.2.0
- semigroups-0.18.5
- temporary-1.2.1.1
- haskell-lsp-0.23.0.0
- haskell-lsp-types-0.23.0.0

configure-options:
ghcide:
Expand Down
2 changes: 2 additions & 0 deletions stack-8.10.3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ extra-deps:
- stylish-haskell-0.12.2.0
- semigroups-0.18.5
- temporary-1.2.1.1
- haskell-lsp-0.23.0.0
- haskell-lsp-types-0.23.0.0

configure-options:
ghcide:
Expand Down
4 changes: 2 additions & 2 deletions stack-8.6.4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ extra-deps:
- haddock-api-2.22.0@rev:1
- haddock-library-1.8.0
- hashable-1.3.0.0
- haskell-lsp-0.22.0.0
- haskell-lsp-types-0.22.0.0
- haskell-lsp-0.23.0.0
- haskell-lsp-types-0.23.0.0
- heapsize-0.3.0
- hie-bios-0.7.1
- hlint-3.2.3
Expand Down
4 changes: 2 additions & 2 deletions stack-8.6.5.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ extra-deps:
- haddock-api-2.22.0@rev:1
- haddock-library-1.8.0
- hashable-1.3.0.0
- haskell-lsp-0.22.0.0
- haskell-lsp-types-0.22.0.0
- haskell-lsp-0.23.0.0
- haskell-lsp-types-0.23.0.0
- heapsize-0.3.0
- hie-bios-0.7.1
- hlint-3.2.3
Expand Down
4 changes: 2 additions & 2 deletions stack-8.8.2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ extra-deps:
- ghc-lib-parser-ex-8.10.0.17
- ghc-trace-events-0.1.2.1
- haddock-library-1.8.0
- haskell-lsp-0.22.0.0
- haskell-lsp-types-0.22.0.0
- haskell-lsp-0.23.0.0
- haskell-lsp-types-0.23.0.0
- haskell-src-exts-1.21.1
- heapsize-0.3.0
- hie-bios-0.7.1
Expand Down
2 changes: 2 additions & 0 deletions stack-8.8.3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ extra-deps:
# commit: fb3859dca2e54d1bbb2c873e68ed225fa179fbef
- stylish-haskell-0.12.2.0
- temporary-1.2.1.1
- haskell-lsp-0.23.0.0
- haskell-lsp-types-0.23.0.0

configure-options:
ghcide:
Expand Down
2 changes: 2 additions & 0 deletions stack-8.8.4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ extra-deps:
# commit: fb3859dca2e54d1bbb2c873e68ed225fa179fbef
- stylish-haskell-0.12.2.0
- temporary-1.2.1.1
- haskell-lsp-0.23.0.0
- haskell-lsp-types-0.23.0.0

configure-options:
ghcide:
Expand Down
4 changes: 2 additions & 2 deletions stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ extra-deps:
- haddock-api-2.22.0@rev:1
- haddock-library-1.8.0
- hashable-1.3.0.0
- haskell-lsp-0.22.0.0
- haskell-lsp-types-0.22.0.0
- haskell-lsp-0.23.0.0
- haskell-lsp-types-0.23.0.0
- heapsize-0.3.0
- hie-bios-0.7.1
- hlint-3.2.3
Expand Down

0 comments on commit d760652

Please sign in to comment.