Skip to content

Commit 7dbc3b1

Browse files
author
Joseph Atkins-Turkish
committed
Don't send requests YCM 'errors' requests for short files.
1 parent 7b937d6 commit 7dbc3b1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

ide/static/ide/js/editor.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,7 @@ CloudPebble.Editor = (function() {
387387
var debounced_check = _.debounce(function() {
388388
if(sChecking) return;
389389
sChecking = true;
390+
if (code_mirror.getValue().match(/\n/g).length < 5) return;
390391
CloudPebble.YCM.request('errors', code_mirror)
391392
.then(function(data) {
392393
_.each(clang_lines, function(line) {

0 commit comments

Comments
 (0)