Skip to content

Commit

Permalink
GLSP-1398: Fix default type mappings
Browse files Browse the repository at this point in the history
Ensure that the correct type for `foreign-object` is configure and add missing
configuration for GShaprePreRenderedElements

Fixes eclipse-glsp/glsp#1398
  • Loading branch information
tortmayr committed Aug 28, 2024
1 parent cc51d17 commit 757447b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/graph/src/default-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -43,6 +44,7 @@ export function getDefaultMapping(): Map<string, GModelElementConstructor> {

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;
}

0 comments on commit 757447b

Please sign in to comment.