File tree Expand file tree Collapse file tree 3 files changed +18
-12
lines changed
plugins/hls-cabal-plugin/src/Ide/Plugin/Cabal
test/testdata/schema/ghc98 Expand file tree Collapse file tree 3 files changed +18
-12
lines changed Original file line number Diff line number Diff line change 3
3
{-# LANGUAGE DuplicateRecordFields #-}
4
4
{-# LANGUAGE GADTs #-}
5
5
{-# LANGUAGE OverloadedStrings #-}
6
- {-# LANGUAGE RecordWildCards #-}
7
6
{-# LANGUAGE ViewPatterns #-}
8
7
9
8
module Ide.Plugin.Cabal.Outline where
@@ -92,13 +91,13 @@ addNameLengthToLSPRange (LSP.Range pos1 (LSP.Position line char)) name =
92
91
(LSP. Position line (char + fromIntegral (T. length name)))
93
92
94
93
defDocumentSymbol :: LSP. Range -> DocumentSymbol
95
- defDocumentSymbol range = DocumentSymbol { .. }
96
- where
97
- _detail = Nothing
98
- _deprecated = Nothing
99
- _name = " "
100
- _kind = LSP. SymbolKind_File
101
- _range = range
102
- _selectionRange = range
103
- _children = Nothing
104
- _tags = Nothing
94
+ defDocumentSymbol range = DocumentSymbol
95
+ { _detail = Nothing
96
+ , _deprecated = Nothing
97
+ , _name = " "
98
+ , _kind = LSP. SymbolKind_File
99
+ , _range = range
100
+ , _selectionRange = range
101
+ , _children = Nothing
102
+ , _tags = Nothing
103
+ }
Original file line number Diff line number Diff line change 11
11
"cabal" : {
12
12
"codeActionsOn" : true ,
13
13
"completionOn" : true ,
14
- "diagnosticsOn" : true
14
+ "diagnosticsOn" : true ,
15
+ "symbolsOn" : true
15
16
},
16
17
"cabal-fmt" : {
17
18
"config" : {
Original file line number Diff line number Diff line change 35
35
"scope" : " resource" ,
36
36
"type" : " boolean"
37
37
},
38
+ "haskell.plugin.cabal.symbolsOn" : {
39
+ "default" : true ,
40
+ "description" : " Enables cabal symbols" ,
41
+ "scope" : " resource" ,
42
+ "type" : " boolean"
43
+ },
38
44
"haskell.plugin.callHierarchy.globalOn" : {
39
45
"default" : true ,
40
46
"description" : " Enables callHierarchy plugin" ,
You can’t perform that action at this time.
0 commit comments