Skip to content

Commit

Permalink
fix sticky scroll start line number
Browse files Browse the repository at this point in the history
  • Loading branch information
dweizhe committed Aug 8, 2022
1 parent e58c66c commit 3d7babc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/editor/contrib/stickyScroll/browser/stickyScroll.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 3d7babc

Please sign in to comment.