What replaces Monaco Editor's deprecated deltaDecorations function?

Viewed 65

The document says it's deprecated:

(method) editor.ICodeEditor.deltaDecorations(oldDecorations: string[], newDecorations: monaco.editor.IModelDeltaDecoration[]): string[] All decorations added through this call will get the ownerId of this editor.

@deprecated

The signature '(oldDecorations: string[], newDecorations: IModelDeltaDecoration[]): string[]' of 'editor.deltaDecorations' is deprecated.

but the only example I found still uses it

https://microsoft.github.io/monaco-editor/playground.html#interacting-with-the-editor-line-and-inline-decorations

The document doesn't say anything about what replaced it.

1 Answers
Related