Skip to content

Commit d2db2fe

Browse files
change all instances of wordHighligher to wordHighlighter
1 parent 6fc9bd1 commit d2db2fe

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

src/vs/editor/contrib/wordHighlighter/wordHighlighter.ts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)