File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
ghcide/src/Development/IDE/LSP Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import qualified Data.Text as T
19
19
import Development.IDE.Core.Rules
20
20
import Development.IDE.Core.Shake
21
21
import Development.IDE.GHC.Compat
22
- import Development.IDE.GHC.Error (realSrcSpanToRange )
22
+ import Development.IDE.GHC.Error (realSrcSpanToRange , rangeToRealSrcSpan )
23
23
import Development.IDE.Types.Location
24
24
import Language.LSP.Server (LspM )
25
25
import Language.LSP.Types
@@ -183,12 +183,10 @@ documentSymbolForImportSummary importSymbols =
183
183
mergeRanges xs = Range (minimum $ map _start xs) (maximum $ map _end xs)
184
184
importRange = mergeRanges $ map (_range :: DocumentSymbol -> Range ) importSymbols
185
185
in
186
- Just (defDocumentSymbol empty :: DocumentSymbol )
186
+ Just (defDocumentSymbol (rangeToRealSrcSpan " " importRange) )
187
187
{ _name = " imports"
188
188
, _kind = SkModule
189
189
, _children = Just (List importSymbols)
190
- , _range = importRange
191
- , _selectionRange = importRange
192
190
}
193
191
194
192
documentSymbolForImport :: Located (ImportDecl GhcPs ) -> Maybe DocumentSymbol
You can’t perform that action at this time.
0 commit comments