Skip to content

Commit

Permalink
Don't send requests YCM 'errors' requests for short files.
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph Atkins-Turkish committed Sep 6, 2016
1 parent 7b937d6 commit 7dbc3b1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ide/static/ide/js/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,7 @@ CloudPebble.Editor = (function() {
var debounced_check = _.debounce(function() {
if(sChecking) return;
sChecking = true;
if (code_mirror.getValue().match(/\n/g).length < 5) return;
CloudPebble.YCM.request('errors', code_mirror)
.then(function(data) {
_.each(clang_lines, function(line) {
Expand Down

0 comments on commit 7dbc3b1

Please sign in to comment.