score:0

Accepted answer
editor.onDidChangeModelDecorations(() => {
    const model = editor.getModel();
    const markers = monaco.editor.getModelMarkers(model);

    console.log({ markers })
})

Related Query

More Query from same tag