未验证 提交 e6adf204 编写于 作者: P Peng Lyu 提交者: GitHub

Merge pull request #65222 from irrationalRock/fix59961

Fixed #59961
......@@ -603,6 +603,17 @@ export class MultiCursorSelectionController extends Disposable implements IEdito
matches = this._session.selectAll();
}
if (findState.searchScope) {
const state = findState.searchScope;
let inSelection: FindMatch[] | null = [];
for (let i = 0; i < matches.length; i++) {
if (matches[i].range.endLineNumber <= state.endLineNumber && matches[i].range.startLineNumber >= state.startLineNumber) {
inSelection.push(matches[i]);
}
}
matches = inSelection;
}
if (matches.length > 0) {
const editorSelection = this._editor.getSelection();
// Have the primary cursor remain the one where the action was invoked
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册