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