Fix #1001 Diagram errors are not highlighted in editor
This commit is contained in:
@@ -33,10 +33,12 @@
|
||||
}
|
||||
oldText = newText;
|
||||
}
|
||||
editor && Monaco?.editor.setModelMarkers(editor.getModel(), 'test', $stateStore.errorMarkers);
|
||||
};
|
||||
|
||||
$: handleTextUpdate(text);
|
||||
stateStore.subscribe(({ errorMarkers }) => {
|
||||
editor && Monaco?.editor.setModelMarkers(editor.getModel(), 'test', errorMarkers);
|
||||
});
|
||||
|
||||
themeStore.subscribe(({ isDark }) => {
|
||||
editor && Monaco?.editor.setTheme(isDark ? 'mermaid-dark' : 'mermaid');
|
||||
|
||||
Reference in New Issue
Block a user