Skip to content

Commit 76c817a

Browse files
committed
Fixes microsoft#104937: Render decorations in minimap if semantic occurrences highlighting is disabled
1 parent 88f93ee commit 76c817a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/vs/editor/contrib/multicursor/multicursor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -971,7 +971,7 @@ export class SelectionHighlighter extends Disposable implements IEditorContribut
971971
return;
972972
}
973973

974-
const hasFindOccurrences = DocumentHighlightProviderRegistry.has(model);
974+
const hasFindOccurrences = DocumentHighlightProviderRegistry.has(model) && this.editor.getOption(EditorOption.occurrencesHighlight);
975975

976976
let allMatches = model.findMatches(this.state.searchText, true, false, this.state.matchCase, this.state.wordSeparators, false).map(m => m.range);
977977
allMatches.sort(Range.compareRangesUsingStarts);

0 commit comments

Comments
 (0)