Skip to content

Commit 73b5307

Browse files
authored
Merge pull request microsoft#95830 from dustypomerleau/hl
change all instances of `wordHighligher` to `wordHighlighter`
2 parents 94c469d + d2db2fe commit 73b5307

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
@@ -483,55 +483,55 @@ class WordHighlighterContribution extends Disposable implements IEditorContribut
483483
return editor.getContribution<WordHighlighterContribution>(WordHighlighterContribution.ID);
484484
}
485485

486-
private wordHighligher: WordHighlighter | null;
486+
private wordHighlighter: WordHighlighter | null;
487487

488488
constructor(editor: ICodeEditor, @IContextKeyService contextKeyService: IContextKeyService) {
489489
super();
490-
this.wordHighligher = null;
490+
this.wordHighlighter = null;
491491
const createWordHighlighterIfPossible = () => {
492492
if (editor.hasModel()) {
493-
this.wordHighligher = new WordHighlighter(editor, contextKeyService);
493+
this.wordHighlighter = new WordHighlighter(editor, contextKeyService);
494494
}
495495
};
496496
this._register(editor.onDidChangeModel((e) => {
497-
if (this.wordHighligher) {
498-
this.wordHighligher.dispose();
499-
this.wordHighligher = null;
497+
if (this.wordHighlighter) {
498+
this.wordHighlighter.dispose();
499+
this.wordHighlighter = null;
500500
}
501501
createWordHighlighterIfPossible();
502502
}));
503503
createWordHighlighterIfPossible();
504504
}
505505

506506
public saveViewState(): boolean {
507-
if (this.wordHighligher && this.wordHighligher.hasDecorations()) {
507+
if (this.wordHighlighter && this.wordHighlighter.hasDecorations()) {
508508
return true;
509509
}
510510
return false;
511511
}
512512

513513
public moveNext() {
514-
if (this.wordHighligher) {
515-
this.wordHighligher.moveNext();
514+
if (this.wordHighlighter) {
515+
this.wordHighlighter.moveNext();
516516
}
517517
}
518518

519519
public moveBack() {
520-
if (this.wordHighligher) {
521-
this.wordHighligher.moveBack();
520+
if (this.wordHighlighter) {
521+
this.wordHighlighter.moveBack();
522522
}
523523
}
524524

525525
public restoreViewState(state: boolean | undefined): void {
526-
if (this.wordHighligher && state) {
527-
this.wordHighligher.restore();
526+
if (this.wordHighlighter && state) {
527+
this.wordHighlighter.restore();
528528
}
529529
}
530530

531531
public dispose(): void {
532-
if (this.wordHighligher) {
533-
this.wordHighligher.dispose();
534-
this.wordHighligher = null;
532+
if (this.wordHighlighter) {
533+
this.wordHighlighter.dispose();
534+
this.wordHighlighter = null;
535535
}
536536
super.dispose();
537537
}

0 commit comments

Comments
 (0)