@@ -40,29 +40,34 @@ outlineTests =
40
40
[sectionArgDocumentSymbol]
41
41
]
42
42
where
43
+ fieldDocumentSymbol :: DocumentSymbol
43
44
fieldDocumentSymbol = (Outline. defDocumentSymbol (LSP. Range {_start = LSP. Position {_line = 0 , _character = 0 },
44
45
_end = LSP. Position {_line = 0 , _character = 8 }}))
45
46
{ _name = " homepage" ,
46
47
_kind = LSP. SymbolKind_Field ,
47
48
_children = Nothing
48
49
}
50
+ fieldLineDocumentSymbol :: DocumentSymbol
49
51
fieldLineDocumentSymbol = (Outline. defDocumentSymbol (LSP. Range {_start = LSP. Position {_line = 0 , _character = 0 },
50
52
_end = LSP. Position {_line = 0 , _character = 13 }}))
51
53
{ _name = " cabal-version" ,
52
54
_kind = LSP. SymbolKind_Field ,
53
55
_children = Nothing -- the values of fieldLine are removed from the outline
54
56
}
57
+ sectionDocumentSymbol :: DocumentSymbol
55
58
sectionDocumentSymbol = (Outline. defDocumentSymbol (LSP. Range {_start = LSP. Position {_line = 0 , _character = 2 },
56
59
_end = LSP. Position {_line = 0 , _character = 15 }}))
57
60
{ _name = " build-depends" ,
58
61
_kind = LSP. SymbolKind_Field ,
59
62
_children = Nothing -- the values of fieldLine are removed from the outline
60
63
}
64
+ sectionArgDocumentSymbol :: DocumentSymbol
61
65
sectionArgDocumentSymbol = (Outline. defDocumentSymbol (LSP. Range {_start = LSP. Position {_line = 0 , _character = 2 },
62
66
_end = LSP. Position {_line = 0 , _character = 19 }}))
63
67
{ _name = " if os ( windows )" ,
64
68
_kind = LSP. SymbolKind_Object ,
65
69
_children = Just $ [sectionArgChildrenDocumentSymbol] }
70
+ sectionArgChildrenDocumentSymbol :: DocumentSymbol
66
71
sectionArgChildrenDocumentSymbol = (Outline. defDocumentSymbol (LSP. Range {_start = LSP. Position {_line = 1 , _character = 4 },
67
72
_end = LSP. Position {_line = 1 , _character = 17 }}))
68
73
{ _name = " build-depends" ,
0 commit comments