refactor(editor): remove edgeless service in ai widgets (#10361)

This commit is contained in:
Saul-Mirone
2025-02-22 08:55:44 +00:00
parent 77d31ea25a
commit 04ed2bdab7
6 changed files with 33 additions and 44 deletions
@@ -33,7 +33,6 @@ import { Bound, getCommonBound } from '@blocksuite/global/utils';
import { PageKeyboardManager } from '../keyboard/keyboard-manager.js';
import type { EdgelessRootBlockComponent } from './edgeless-root-block.js';
import { CopilotTool } from './gfx-tool/copilot-tool.js';
import { LassoTool } from './gfx-tool/lasso-tool.js';
import { ShapeTool } from './gfx-tool/shape-tool.js';
import {
@@ -326,9 +325,6 @@ export class EdgelessPageKeyboardManager extends PageKeyboardManager {
if (currentTool instanceof LassoTool && currentTool.isSelecting) {
currentTool.abort();
}
if (currentTool instanceof CopilotTool) {
currentTool.abort();
}
if (!this.rootComponent.service.selection.empty) {
rootComponent.selection.clear();