@@ -17,7 +17,7 @@ import { IQuickOpenService } from 'vs/platform/quickOpen/common/quickOpen';
1717import { ITextEditorOptions } from 'vs/platform/editor/common/editor' ;
1818import { getDocumentSymbols } from 'vs/editor/contrib/quickOpen/quickOpen' ;
1919import { DocumentSymbolProviderRegistry , DocumentSymbol , symbolKindToCssClass , SymbolKind , SymbolTag } from 'vs/editor/common/modes' ;
20- import { IRange } from 'vs/editor/common/core/range' ;
20+ import { IRange , Range } from 'vs/editor/common/core/range' ;
2121import { themeColorFromId } from 'vs/platform/theme/common/themeService' ;
2222import { overviewRulerRangeHighlight } from 'vs/editor/common/view/editorColorRegistry' ;
2323import { GroupIdentifier , IEditorInput } from 'vs/workbench/common/editor' ;
@@ -219,7 +219,7 @@ class SymbolEntry extends EditorQuickOpenEntryGroup {
219219
220220 getOptions ( pinned ?: boolean ) : ITextEditorOptions {
221221 return {
222- selection : this . revealRange ,
222+ selection : Range . collapseToStart ( this . revealRange ) ,
223223 pinned
224224 } ;
225225 }
@@ -242,7 +242,7 @@ class SymbolEntry extends EditorQuickOpenEntryGroup {
242242
243243 // Apply selection and focus
244244 else {
245- const range = this . revealRange ;
245+ const range = Range . collapseToStart ( this . revealRange ) ;
246246 const activeTextEditorWidget = this . editorService . activeTextEditorWidget ;
247247 if ( activeTextEditorWidget ) {
248248 activeTextEditorWidget . setSelection ( range ) ;
@@ -256,7 +256,7 @@ class SymbolEntry extends EditorQuickOpenEntryGroup {
256256 private runPreview ( ) : boolean {
257257
258258 // Select Outline Position
259- const range = this . revealRange ;
259+ const range = Range . collapseToStart ( this . revealRange ) ;
260260 const activeTextEditorWidget = this . editorService . activeTextEditorWidget ;
261261 if ( activeTextEditorWidget ) {
262262 activeTextEditorWidget . revealRangeInCenter ( range , ScrollType . Smooth ) ;
0 commit comments