提交 148b8586 编写于 作者: R rebornix

fix #89250.

上级 7095ef14
......@@ -83,6 +83,10 @@ export class CommonFindController extends Disposable implements IEditorContribut
private readonly _clipboardService: IClipboardService;
protected readonly _contextKeyService: IContextKeyService;
get editor() {
return this._editor;
}
public static get(editor: ICodeEditor): CommonFindController {
return editor.getContribution<CommonFindController>(CommonFindController.ID);
}
......@@ -583,7 +587,13 @@ export class NextMatchFindAction extends MatchFindAction {
}
protected _run(controller: CommonFindController): boolean {
return controller.moveToNextMatch();
const result = controller.moveToNextMatch();
if (result) {
controller.editor.pushUndoStop();
return true;
}
return false;
}
}
......@@ -604,7 +614,13 @@ export class NextMatchFindAction2 extends MatchFindAction {
}
protected _run(controller: CommonFindController): boolean {
return controller.moveToNextMatch();
const result = controller.moveToNextMatch();
if (result) {
controller.editor.pushUndoStop();
return true;
}
return false;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册