Skip to content

Commit 757447b

Browse files
committed
GLSP-1398: Fix default type mappings
Ensure that the correct type for `foreign-object` is configure and add missing configuration for GShaprePreRenderedElements Fixes eclipse-glsp/glsp#1398
1 parent cc51d17 commit 757447b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/graph/src/default-types.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import { DefaultTypes as types } from '@eclipse-glsp/protocol';
1717
import { GButton } from './gbutton';
1818
import { GCompartment } from './gcompartment';
1919
import { GEdge } from './gedge';
20+
import { GForeignObjectElement } from './gforeign-object-element';
2021
import { GGraph } from './ggraph';
2122
import { GHtmlRoot } from './ghtml-root';
2223
import { GIssueMarker } from './gissue-marker';
@@ -43,6 +44,7 @@ export function getDefaultMapping(): Map<string, GModelElementConstructor> {
4344

4445
mapping.set(types.HTML, GHtmlRoot);
4546
mapping.set(types.PRE_RENDERED, GPreRenderedElement);
46-
mapping.set(types.FOREIGN_OBJECT, GShapedPreRenderedElement);
47+
mapping.set(types.SHAPE_PRE_RENDERED, GShapedPreRenderedElement);
48+
mapping.set(types.FOREIGN_OBJECT, GForeignObjectElement);
4749
return mapping;
4850
}

0 commit comments

Comments
 (0)