@@ -123,10 +123,10 @@ suite('Sticky Scroll Tests', () => {
123
123
await withAsyncTestCodeEditor ( model , { serviceCollection } , async ( editor , _viewModel , instantiationService ) => {
124
124
125
125
const stickyScrollController : StickyScrollController = editor . registerAndInstantiateContribution ( StickyScrollController . ID , StickyScrollController ) ;
126
- await stickyScrollController . stickyScrollCandidateProvider . update ( ) ;
127
126
const lineHeight : number = editor . getOption ( EditorOption . lineHeight ) ;
128
127
const languageService : ILanguageFeaturesService = instantiationService . get ( ILanguageFeaturesService ) ;
129
128
languageService . documentSymbolProvider . register ( '*' , documentSymbolProviderForTestModel ( ) ) ;
129
+ await stickyScrollController . stickyScrollCandidateProvider . update ( ) ;
130
130
let state ;
131
131
132
132
editor . setScrollTop ( 1 ) ;
@@ -165,12 +165,11 @@ suite('Sticky Scroll Tests', () => {
165
165
await withAsyncTestCodeEditor ( model , { serviceCollection } , async ( editor , viewModel , instantiationService ) => {
166
166
167
167
const stickyScrollController : StickyScrollController = editor . registerAndInstantiateContribution ( StickyScrollController . ID , StickyScrollController ) ;
168
- await stickyScrollController . stickyScrollCandidateProvider . update ( ) ;
169
168
const lineHeight = editor . getOption ( EditorOption . lineHeight ) ;
170
169
171
170
const languageService = instantiationService . get ( ILanguageFeaturesService ) ;
172
171
languageService . documentSymbolProvider . register ( '*' , documentSymbolProviderForTestModel ( ) ) ;
173
-
172
+ await stickyScrollController . stickyScrollCandidateProvider . update ( ) ;
174
173
editor . setHiddenAreas ( [ { startLineNumber : 2 , endLineNumber : 2 , startColumn : 1 , endColumn : 1 } , { startLineNumber : 10 , endLineNumber : 11 , startColumn : 1 , endColumn : 1 } ] ) ;
175
174
let state ;
176
175
0 commit comments