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 Jun 17, 2016
1 parent d7d3966 commit 633195e
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 @@ -328,6 +328,7 @@ CloudPebble.Editor = (function() {
var throttled_check = _.throttle(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 633195e

Please sign in to comment.