From ce4462c1ce2a76ad4d83220a58cb943e5161d1f7 Mon Sep 17 00:00:00 2001 From: Sanket Shevkar <43399522+sanketshevkar@users.noreply.github.com> Date: Fri, 29 Nov 2024 18:30:19 +0530 Subject: [PATCH] fix(bug): pass model manager options to new mm in dcs manager (#949) Signed-off-by: sanketshevkar --- packages/concerto-core/lib/decoratormanager.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/concerto-core/lib/decoratormanager.js b/packages/concerto-core/lib/decoratormanager.js index 4ada61a89..f45966fe6 100644 --- a/packages/concerto-core/lib/decoratormanager.js +++ b/packages/concerto-core/lib/decoratormanager.js @@ -321,7 +321,8 @@ class DecoratorManager { strict: true, metamodelValidation: true, addMetamodel: true, - enableMapType + enableMapType, + importAliasing: modelManager.isAliasedTypeEnabled(), }); validationModelManager.addModelFiles(modelManager.getModelFiles()); validationModelManager.addCTOModel( @@ -449,6 +450,7 @@ class DecoratorManager { const newModelManager = new ModelManager({ strict: modelManager.isStrict(), enableMapType, + importAliasing: modelManager.isAliasedTypeEnabled(), decoratorValidation: modelManager.getDecoratorValidation()}); newModelManager.fromAst(decoratedAst); return newModelManager;