This API is on the model and editor, and I assume it's meant to be public, because it's used in this example - https://microsoft.github.io/monaco-editor/playground.html#interacting-with-the-editor-rendering-glyphs-in-the-margin
i use deltaDecorations and onDidChangeDecorations
Cool, I didn't notice that deltaDecorations changes the decorations. Would make sense to update the example with that API.
Most helpful comment
i use
deltaDecorationsandonDidChangeDecorations