Skip to content

Commit 2016c3d

Browse files
authored
Fix accessible view regression (microsoft#232198)
* accessible view fix * don't create wh, check schema for accessibleview
1 parent 72a2c7c commit 2016c3d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,6 @@ class WordHighlighter {
634634
private async _run(multiFileConfigChange?: boolean, noDelay?: boolean): Promise<void> {
635635

636636
const hasTextFocus = this.editor.hasTextFocus();
637-
638637
if (!hasTextFocus) { // new nb cell scrolled in, didChangeModel fires
639638
if (!WordHighlighter.query) { // no previous query, nothing to highlight off of
640639
this._stopAll();
@@ -848,7 +847,7 @@ export class WordHighlighterContribution extends Disposable implements IEditorCo
848847
super();
849848
this._wordHighlighter = null;
850849
const createWordHighlighterIfPossible = () => {
851-
if (editor.hasModel() && !editor.getModel().isTooLargeForTokenization()) {
850+
if (editor.hasModel() && !editor.getModel().isTooLargeForTokenization() && editor.getModel().uri.scheme !== Schemas.accessibleView) {
852851
this._wordHighlighter = new WordHighlighter(editor, languageFeaturesService.documentHighlightProvider, languageFeaturesService.multiDocumentHighlightProvider, contextKeyService, textModelService, codeEditorService, configurationService, logService);
853852
}
854853
};

0 commit comments

Comments
 (0)