window.editor.getModel().onDidChangeContent( event => { console.log( event ); console.log( window.editor.getValue() ); });