@@ -465,55 +465,55 @@ class WordHighlighterContribution extends Disposable implements IEditorContribut
465465 return editor . getContribution < WordHighlighterContribution > ( WordHighlighterContribution . ID ) ;
466466 }
467467
468- private wordHighligher : WordHighlighter | null ;
468+ private wordHighlighter : WordHighlighter | null ;
469469
470470 constructor ( editor : ICodeEditor , @IContextKeyService contextKeyService : IContextKeyService ) {
471471 super ( ) ;
472- this . wordHighligher = null ;
472+ this . wordHighlighter = null ;
473473 const createWordHighlighterIfPossible = ( ) => {
474474 if ( editor . hasModel ( ) ) {
475- this . wordHighligher = new WordHighlighter ( editor , contextKeyService ) ;
475+ this . wordHighlighter = new WordHighlighter ( editor , contextKeyService ) ;
476476 }
477477 } ;
478478 this . _register ( editor . onDidChangeModel ( ( e ) => {
479- if ( this . wordHighligher ) {
480- this . wordHighligher . dispose ( ) ;
481- this . wordHighligher = null ;
479+ if ( this . wordHighlighter ) {
480+ this . wordHighlighter . dispose ( ) ;
481+ this . wordHighlighter = null ;
482482 }
483483 createWordHighlighterIfPossible ( ) ;
484484 } ) ) ;
485485 createWordHighlighterIfPossible ( ) ;
486486 }
487487
488488 public saveViewState ( ) : boolean {
489- if ( this . wordHighligher && this . wordHighligher . hasDecorations ( ) ) {
489+ if ( this . wordHighlighter && this . wordHighlighter . hasDecorations ( ) ) {
490490 return true ;
491491 }
492492 return false ;
493493 }
494494
495495 public moveNext ( ) {
496- if ( this . wordHighligher ) {
497- this . wordHighligher . moveNext ( ) ;
496+ if ( this . wordHighlighter ) {
497+ this . wordHighlighter . moveNext ( ) ;
498498 }
499499 }
500500
501501 public moveBack ( ) {
502- if ( this . wordHighligher ) {
503- this . wordHighligher . moveBack ( ) ;
502+ if ( this . wordHighlighter ) {
503+ this . wordHighlighter . moveBack ( ) ;
504504 }
505505 }
506506
507507 public restoreViewState ( state : boolean | undefined ) : void {
508- if ( this . wordHighligher && state ) {
509- this . wordHighligher . restore ( ) ;
508+ if ( this . wordHighlighter && state ) {
509+ this . wordHighlighter . restore ( ) ;
510510 }
511511 }
512512
513513 public dispose ( ) : void {
514- if ( this . wordHighligher ) {
515- this . wordHighligher . dispose ( ) ;
516- this . wordHighligher = null ;
514+ if ( this . wordHighlighter ) {
515+ this . wordHighlighter . dispose ( ) ;
516+ this . wordHighlighter = null ;
517517 }
518518 super . dispose ( ) ;
519519 }
0 commit comments