ではありません。getAllDecorations私はこれは私が装飾を作成するために使用していたコードで、行およびインライン装飾を作成し、エディタにそれらを適用するために管理している機能
editor.deltaDecorations([], myDecorations);
は、今私が探しています装飾を取り除く方法
APIドキュメントhttps://microsoft.github.io/monaco-editor/api/interfaces/monaco.editor.itextmodelwithdecorations.html#getalldecorationsに、ここで説明したように私はgetAllDecorationsを試してみましたが、私はこのようにそれを使用しようとすると:
var decs = editor.getAllDecorations();
私は、ブラウザのコンソールに次のエラーを取得:
Uncaught TypeError: editor.getAllDecorations is not a function(…)
を
私が間違っていることについて何か提案があれば幸いです。 TIA