Skip to content

Commit

Permalink
fix: remove folderEvent from editor controller
Browse files Browse the repository at this point in the history
  • Loading branch information
wewoor authored and mumiao committed Apr 28, 2021
1 parent dd4846c commit 4015f58
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/controller/editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import {
IStatusBarService,
StatusBarService,
} from 'mo/services';
import { FolderTreeEvent } from 'mo/model/workbench/explorer/folderTree';

export interface IEditorController {
groupSplitPos?: string[];
Expand Down Expand Up @@ -215,7 +214,6 @@ export class EditorController extends Controller implements IEditorController {
const newValue = editorInstance.getModel()?.getValue();
const { current } = this.editorService.getState();
const tab = current?.tab;
const originValue = tab?.data?.value;
if (!tab) return;
this.editorService.updateTab(
{
Expand All @@ -227,12 +225,6 @@ export class EditorController extends Controller implements IEditorController {
},
groupId
);
this.emit(EditorEvent.OnUpdateTab, newValue, groupId, originValue);
this.emit(
FolderTreeEvent.onUpdateFileContent,
current?.tab?.id as any,
newValue
);
this.updateStatusBar(editorInstance);
});

Expand Down

0 comments on commit 4015f58

Please sign in to comment.