File tree 4 files changed +11
-5
lines changed
src/Development/IDE/Types
4 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 106
106
- Development.IDE.Plugin.CodeAction
107
107
- Development.IDE.Plugin.Completions
108
108
- Development.IDE.Plugin.Completions.Logic
109
+ - Development.IDE.Types.Location
109
110
- Main
110
111
111
112
- flags :
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ library
60
60
hls-plugin-api ^>= 1.1.0.0 ,
61
61
lens,
62
62
hiedb == 0.3.0. *,
63
- lsp-types == 1.2. * ,
63
+ lsp-types >= 1.2 && < 1.4 ,
64
64
lsp == 1.2. *,
65
65
mtl,
66
66
network-uri,
@@ -343,7 +343,7 @@ test-suite ghcide-tests
343
343
hls-plugin-api,
344
344
network-uri,
345
345
lens,
346
- lsp-test == 0.14.0.0 ,
346
+ lsp-test ^ >= 0.14 ,
347
347
optparse-applicative,
348
348
process,
349
349
QuickCheck,
@@ -403,7 +403,7 @@ executable ghcide-bench
403
403
extra,
404
404
filepath,
405
405
ghcide,
406
- lsp-test == 0.14.0.0 ,
406
+ lsp-test,
407
407
optparse-applicative,
408
408
process,
409
409
safe-exceptions,
Original file line number Diff line number Diff line change 1
1
-- Copyright (c) 2019 The DAML Authors. All rights reserved.
2
2
-- SPDX-License-Identifier: Apache-2.0
3
+ {-# LANGUAGE CPP #-}
3
4
4
5
5
6
-- | Types and functions for working with source code locations.
@@ -43,7 +44,11 @@ toNormalizedFilePath' "" = emptyFilePath
43
44
toNormalizedFilePath' fp = LSP. toNormalizedFilePath fp
44
45
45
46
emptyFilePath :: LSP. NormalizedFilePath
47
+ #if MIN_VERSION_lsp_types(1,3,0)
48
+ emptyFilePath = LSP. normalizedFilePath emptyPathUri " "
49
+ #else
46
50
emptyFilePath = LSP. NormalizedFilePath emptyPathUri " "
51
+ #endif
47
52
48
53
-- | We use an empty string as a filepath when we don’t have a file.
49
54
-- However, haskell-lsp doesn’t support that in uriToFilePath and given
Original file line number Diff line number Diff line change @@ -48,8 +48,8 @@ library
48
48
, hspec-core
49
49
, lens
50
50
, lsp ^>= 1.2
51
- , lsp-test == 0.14.0.0
52
- , lsp-types ^ >= 1.2
51
+ , lsp-test ^ >= 0.14
52
+ , lsp-types >= 1.2 && < 1.4
53
53
, tasty
54
54
, tasty-expected-failure
55
55
, tasty-golden
You can’t perform that action at this time.
0 commit comments