We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1cac8b1 + 85d641e commit e6adf20Copy full SHA for e6adf20
1 file changed
src/vs/editor/contrib/multicursor/multicursor.ts
@@ -603,6 +603,17 @@ export class MultiCursorSelectionController extends Disposable implements IEdito
603
matches = this._session.selectAll();
604
}
605
606
+ if (findState.searchScope) {
607
+ const state = findState.searchScope;
608
+ let inSelection: FindMatch[] | null = [];
609
+ for (let i = 0; i < matches.length; i++) {
610
+ if (matches[i].range.endLineNumber <= state.endLineNumber && matches[i].range.startLineNumber >= state.startLineNumber) {
611
+ inSelection.push(matches[i]);
612
+ }
613
614
+ matches = inSelection;
615
616
+
617
if (matches.length > 0) {
618
const editorSelection = this._editor.getSelection();
619
// Have the primary cursor remain the one where the action was invoked
0 commit comments