Skip to content

Commit 99de729

Browse files
author
aiday-mar
committed
Update tests
1 parent d49c5e5 commit 99de729

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/vs/editor/contrib/stickyScroll/test/browser/stickyScroll.test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,10 @@ suite('Sticky Scroll Tests', () => {
123123
await withAsyncTestCodeEditor(model, { serviceCollection }, async (editor, _viewModel, instantiationService) => {
124124

125125
const stickyScrollController: StickyScrollController = editor.registerAndInstantiateContribution(StickyScrollController.ID, StickyScrollController);
126-
await stickyScrollController.stickyScrollCandidateProvider.update();
127126
const lineHeight: number = editor.getOption(EditorOption.lineHeight);
128127
const languageService: ILanguageFeaturesService = instantiationService.get(ILanguageFeaturesService);
129128
languageService.documentSymbolProvider.register('*', documentSymbolProviderForTestModel());
129+
await stickyScrollController.stickyScrollCandidateProvider.update();
130130
let state;
131131

132132
editor.setScrollTop(1);
@@ -165,12 +165,11 @@ suite('Sticky Scroll Tests', () => {
165165
await withAsyncTestCodeEditor(model, { serviceCollection }, async (editor, viewModel, instantiationService) => {
166166

167167
const stickyScrollController: StickyScrollController = editor.registerAndInstantiateContribution(StickyScrollController.ID, StickyScrollController);
168-
await stickyScrollController.stickyScrollCandidateProvider.update();
169168
const lineHeight = editor.getOption(EditorOption.lineHeight);
170169

171170
const languageService = instantiationService.get(ILanguageFeaturesService);
172171
languageService.documentSymbolProvider.register('*', documentSymbolProviderForTestModel());
173-
172+
await stickyScrollController.stickyScrollCandidateProvider.update();
174173
editor.setHiddenAreas([{ startLineNumber: 2, endLineNumber: 2, startColumn: 1, endColumn: 1 }, { startLineNumber: 10, endLineNumber: 11, startColumn: 1, endColumn: 1 }]);
175174
let state;
176175

0 commit comments

Comments
 (0)