From 757447bdd53482459a3640eb9aa214bf967d3f83 Mon Sep 17 00:00:00 2001 From: Tobias Ortmayr Date: Wed, 28 Aug 2024 11:40:31 +0200 Subject: [PATCH] GLSP-1398: Fix default type mappings Ensure that the correct type for `foreign-object` is configure and add missing configuration for GShaprePreRenderedElements Fixes https://github.com/eclipse-glsp/glsp/issues/1398 --- packages/graph/src/default-types.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/graph/src/default-types.ts b/packages/graph/src/default-types.ts index 0b6f628..60bdad8 100644 --- a/packages/graph/src/default-types.ts +++ b/packages/graph/src/default-types.ts @@ -17,6 +17,7 @@ import { DefaultTypes as types } from '@eclipse-glsp/protocol'; import { GButton } from './gbutton'; import { GCompartment } from './gcompartment'; import { GEdge } from './gedge'; +import { GForeignObjectElement } from './gforeign-object-element'; import { GGraph } from './ggraph'; import { GHtmlRoot } from './ghtml-root'; import { GIssueMarker } from './gissue-marker'; @@ -43,6 +44,7 @@ export function getDefaultMapping(): Map { mapping.set(types.HTML, GHtmlRoot); mapping.set(types.PRE_RENDERED, GPreRenderedElement); - mapping.set(types.FOREIGN_OBJECT, GShapedPreRenderedElement); + mapping.set(types.SHAPE_PRE_RENDERED, GShapedPreRenderedElement); + mapping.set(types.FOREIGN_OBJECT, GForeignObjectElement); return mapping; }