From 9c9d8f40c62836b18d1285ac78fcedd56de7b9e4 Mon Sep 17 00:00:00 2001 From: DingWeizhe Date: Wed, 10 Aug 2022 20:58:30 +0800 Subject: [PATCH] fix sticky scroll start line number (#157466) Co-authored-by: dweizhe --- .../editor/contrib/stickyScroll/browser/stickyScrollProvider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/editor/contrib/stickyScroll/browser/stickyScrollProvider.ts b/src/vs/editor/contrib/stickyScroll/browser/stickyScrollProvider.ts index e86639ecbbd48b..0ad46393fcd55e 100644 --- a/src/vs/editor/contrib/stickyScroll/browser/stickyScrollProvider.ts +++ b/src/vs/editor/contrib/stickyScroll/browser/stickyScrollProvider.ts @@ -147,7 +147,7 @@ class StickyOutlineElement { }); let range: StickyRange | undefined; if (outlineModel instanceof OutlineElement) { - range = new StickyRange(outlineModel.symbol.range.startLineNumber, outlineModel.symbol.range.endLineNumber); + range = new StickyRange(outlineModel.symbol.selectionRange.startLineNumber, outlineModel.symbol.range.endLineNumber); } else { range = undefined; }