Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdima committed Feb 26, 2016
1 parent fe345e7 commit e99b957
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/vs/editor/common/services/modeServiceImpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,12 @@ export class ModeServiceImpl implements IModeService {
if (compatModeData) {
// This is a compatibility mode
let compatModeAsyncDescriptor = createAsyncDescriptor1<modes.IModeDescriptor, modes.IMode>(compatModeData.moduleId, compatModeData.ctorName);
return this._threadService.createInstance(compatModeAsyncDescriptor, modeDescriptor);
return this._threadService.createInstance(compatModeAsyncDescriptor, modeDescriptor).then((compatMode) => {
if (compatMode.configSupport) {
compatMode.configSupport.configure(this.getConfigurationForMode(modeId));
}
return compatMode;
});
}

return TPromise.as<modes.IMode>(this._threadService.createInstance(FrankensteinMode, modeDescriptor));
Expand Down

0 comments on commit e99b957

Please sign in to comment.