File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
src/vs/editor/contrib/stickyScroll/browser Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 6
6
import * as dom from 'vs/base/browser/dom' ;
7
7
import { StandardMouseEvent } from 'vs/base/browser/mouseEvent' ;
8
8
import { createTrustedTypesPolicy } from 'vs/base/browser/trustedTypes' ;
9
+ import { equals } from 'vs/base/common/arrays' ;
9
10
import { Disposable , DisposableStore } from 'vs/base/common/lifecycle' ;
10
11
import 'vs/css!./stickyScroll' ;
11
12
import { ICodeEditor , IOverlayWidget , IOverlayWidgetPosition } from 'vs/editor/browser/editorBrowser' ;
@@ -23,9 +24,7 @@ export class StickyScrollWidgetState {
23
24
) { }
24
25
25
26
public equals ( other : StickyScrollWidgetState | undefined ) : boolean {
26
- return ! ! other && this . lastLineRelativePosition === other . lastLineRelativePosition
27
- && this . lineNumbers . length === other . lineNumbers . length
28
- && this . lineNumbers . every ( ( lineNumber , index ) => lineNumber === other . lineNumbers [ index ] ) ;
27
+ return ! ! other && this . lastLineRelativePosition === other . lastLineRelativePosition && equals ( this . lineNumbers , other . lineNumbers ) ;
29
28
}
30
29
}
31
30
You can’t perform that action at this time.
0 commit comments