add printing of lint messages
This commit is contained in:
parent
7fb77772f7
commit
ec26e6ddac
1 changed files with 2 additions and 0 deletions
|
@ -36,6 +36,8 @@ class Editor extends React.Component {
|
||||||
});
|
});
|
||||||
this._cm.on('change', debounce(200, () => {
|
this._cm.on('change', debounce(200, () => {
|
||||||
this.props.updateFileContent(this.props.file.name, this._cm.getValue());
|
this.props.updateFileContent(this.props.file.name, this._cm.getValue());
|
||||||
|
let annotations = this._cm.state.lint.marked;
|
||||||
|
annotations.forEach(function (x) { console.log(x.__annotation.severity + ' in line number ' + (x.__annotation.from.line + 1) + ' : ' + x.__annotation.message); });
|
||||||
}));
|
}));
|
||||||
// this._cm.on('change', () => { // eslint-disable-line
|
// this._cm.on('change', () => { // eslint-disable-line
|
||||||
// // this.props.updateFileContent('sketch.js', this._cm.getValue());
|
// // this.props.updateFileContent('sketch.js', this._cm.getValue());
|
||||||
|
|
Loading…
Reference in a new issue