@@ -6,8 +6,6 @@ module Outline (
6
6
) where
7
7
8
8
import qualified Ide.Plugin.Cabal.Outline as Outline
9
- import Language.LSP.Protocol.Types ()
10
- import qualified Language.LSP.Protocol.Types as LSP
11
9
import Test.Hls
12
10
import Utils
13
11
@@ -41,36 +39,36 @@ outlineTests =
41
39
]
42
40
where
43
41
fieldDocumentSymbol :: DocumentSymbol
44
- fieldDocumentSymbol = (Outline. defDocumentSymbol (LSP. Range {_start = LSP. Position {_line = 0 , _character = 0 },
45
- _end = LSP. Position {_line = 0 , _character = 8 }}))
42
+ fieldDocumentSymbol = (Outline. defDocumentSymbol (Range {_start = Position {_line = 0 , _character = 0 },
43
+ _end = Position {_line = 0 , _character = 8 }}))
46
44
{ _name = " homepage" ,
47
- _kind = LSP. SymbolKind_Field ,
45
+ _kind = SymbolKind_Field ,
48
46
_children = Nothing
49
47
}
50
48
fieldLineDocumentSymbol :: DocumentSymbol
51
- fieldLineDocumentSymbol = (Outline. defDocumentSymbol (LSP. Range {_start = LSP. Position {_line = 0 , _character = 0 },
52
- _end = LSP. Position {_line = 0 , _character = 13 }}))
49
+ fieldLineDocumentSymbol = (Outline. defDocumentSymbol (Range {_start = Position {_line = 0 , _character = 0 },
50
+ _end = Position {_line = 0 , _character = 13 }}))
53
51
{ _name = " cabal-version" ,
54
- _kind = LSP. SymbolKind_Field ,
52
+ _kind = SymbolKind_Field ,
55
53
_children = Nothing -- the values of fieldLine are removed from the outline
56
54
}
57
55
sectionDocumentSymbol :: DocumentSymbol
58
- sectionDocumentSymbol = (Outline. defDocumentSymbol (LSP. Range {_start = LSP. Position {_line = 0 , _character = 2 },
59
- _end = LSP. Position {_line = 0 , _character = 15 }}))
56
+ sectionDocumentSymbol = (Outline. defDocumentSymbol (Range {_start = Position {_line = 0 , _character = 2 },
57
+ _end = Position {_line = 0 , _character = 15 }}))
60
58
{ _name = " build-depends" ,
61
- _kind = LSP. SymbolKind_Field ,
59
+ _kind = SymbolKind_Field ,
62
60
_children = Nothing -- the values of fieldLine are removed from the outline
63
61
}
64
62
sectionArgDocumentSymbol :: DocumentSymbol
65
- sectionArgDocumentSymbol = (Outline. defDocumentSymbol (LSP. Range {_start = LSP. Position {_line = 0 , _character = 2 },
66
- _end = LSP. Position {_line = 0 , _character = 19 }}))
63
+ sectionArgDocumentSymbol = (Outline. defDocumentSymbol (Range {_start = Position {_line = 0 , _character = 2 },
64
+ _end = Position {_line = 0 , _character = 19 }}))
67
65
{ _name = " if os ( windows )" ,
68
- _kind = LSP. SymbolKind_Object ,
66
+ _kind = SymbolKind_Object ,
69
67
_children = Just $ [sectionArgChildrenDocumentSymbol] }
70
68
sectionArgChildrenDocumentSymbol :: DocumentSymbol
71
- sectionArgChildrenDocumentSymbol = (Outline. defDocumentSymbol (LSP. Range {_start = LSP. Position {_line = 1 , _character = 4 },
72
- _end = LSP. Position {_line = 1 , _character = 17 }}))
69
+ sectionArgChildrenDocumentSymbol = (Outline. defDocumentSymbol (Range {_start = Position {_line = 1 , _character = 4 },
70
+ _end = Position {_line = 1 , _character = 17 }}))
73
71
{ _name = " build-depends" ,
74
- _kind = LSP. SymbolKind_Field ,
72
+ _kind = SymbolKind_Field ,
75
73
_children = Nothing
76
74
}
0 commit comments