提交 4716f2e5 编写于 作者: A Alex Dima

Emit model mode changed from modelService

上级 8a6538e6
......@@ -374,6 +374,11 @@ export class ModelServiceImpl implements IModelService {
let wasSyncedToWorkers = modelData.isSyncedToWorkers;
let shouldSyncToWorkers = this._shouldSyncModelToWorkers(modelData.model);
this._onModelModeChanged.fire({
model: modelData.model,
oldModeId: (<EditorCommon.IModelModeChangedEvent>e.getData()).oldMode.getId()
});
if (wasSyncedToWorkers) {
if (shouldSyncToWorkers) {
// true -> true
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册