Skip to content

Commit 4015f58

Browse files
wewoormumiao
authored andcommitted
fix: remove folderEvent from editor controller
1 parent dd4846c commit 4015f58

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/controller/editor.tsx

-8
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import {
2323
IStatusBarService,
2424
StatusBarService,
2525
} from 'mo/services';
26-
import { FolderTreeEvent } from 'mo/model/workbench/explorer/folderTree';
2726

2827
export interface IEditorController {
2928
groupSplitPos?: string[];
@@ -215,7 +214,6 @@ export class EditorController extends Controller implements IEditorController {
215214
const newValue = editorInstance.getModel()?.getValue();
216215
const { current } = this.editorService.getState();
217216
const tab = current?.tab;
218-
const originValue = tab?.data?.value;
219217
if (!tab) return;
220218
this.editorService.updateTab(
221219
{
@@ -227,12 +225,6 @@ export class EditorController extends Controller implements IEditorController {
227225
},
228226
groupId
229227
);
230-
this.emit(EditorEvent.OnUpdateTab, newValue, groupId, originValue);
231-
this.emit(
232-
FolderTreeEvent.onUpdateFileContent,
233-
current?.tab?.id as any,
234-
newValue
235-
);
236228
this.updateStatusBar(editorInstance);
237229
});
238230

0 commit comments

Comments
 (0)