File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
src/vs/editor/contrib/stickyScroll/browser Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,9 @@ export class StickyLineCandidateProvider extends Disposable {
108
108
const model = this . _editor . getModel ( ) ;
109
109
const modelVersionId = model . getVersionId ( ) ;
110
110
let outlineModel = await OutlineModel . create ( this . _languageFeaturesService . documentSymbolProvider , model , token ) as OutlineModel ;
111
-
111
+ if ( token . isCancellationRequested ) {
112
+ return ;
113
+ }
112
114
// When several possible outline providers
113
115
if ( outlineModel . children . size !== 0 && outlineModel . children . values ( ) . next ( ) . value instanceof OutlineGroup ) {
114
116
if ( outlineModel . children . has ( this . _providerString ) ) {
@@ -127,9 +129,6 @@ export class StickyLineCandidateProvider extends Disposable {
127
129
outlineModel = outlineModel . children . get ( this . _providerString ) as unknown as OutlineModel ;
128
130
}
129
131
}
130
- if ( token . isCancellationRequested ) {
131
- return ;
132
- }
133
132
this . _outlineModel = StickyOutlineElement . fromOutlineModel ( outlineModel ) ;
134
133
this . _modelVersionId = modelVersionId ;
135
134
}
You can’t perform that action at this time.
0 commit comments