diff --git a/src/vs/editor/contrib/stickyScroll/browser/stickyScroll.ts b/src/vs/editor/contrib/stickyScroll/browser/stickyScroll.ts index 67b68da1f2d7d3..5dd34a8a1fdfdc 100644 --- a/src/vs/editor/contrib/stickyScroll/browser/stickyScroll.ts +++ b/src/vs/editor/contrib/stickyScroll/browser/stickyScroll.ts @@ -139,7 +139,7 @@ class StickyScrollController extends Disposable implements IEditorContribution { while (outlineElement) { const kind: SymbolKind = outlineElement.symbol.kind; if (kind === SymbolKind.Class || kind === SymbolKind.Constructor || kind === SymbolKind.Function || kind === SymbolKind.Interface || kind === SymbolKind.Method || kind === SymbolKind.Module) { - currentStartLine = outlineElement?.symbol.range.startLineNumber as number; + currentStartLine = outlineElement?.symbol.selectionRange.startLineNumber as number; currentEndLine = outlineElement?.symbol.range.endLineNumber as number; if (currentEndLine > currentStartLine) { this._ranges.push([currentStartLine, currentEndLine - 1, depth]);