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 66import * as dom from 'vs/base/browser/dom' ;
77import { StandardMouseEvent } from 'vs/base/browser/mouseEvent' ;
88import { createTrustedTypesPolicy } from 'vs/base/browser/trustedTypes' ;
9+ import { equals } from 'vs/base/common/arrays' ;
910import { Disposable , DisposableStore } from 'vs/base/common/lifecycle' ;
1011import 'vs/css!./stickyScroll' ;
1112import { ICodeEditor , IOverlayWidget , IOverlayWidgetPosition } from 'vs/editor/browser/editorBrowser' ;
@@ -23,9 +24,7 @@ export class StickyScrollWidgetState {
2324 ) { }
2425
2526 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 ) ;
2928 }
3029}
3130
You can’t perform that action at this time.
0 commit comments