Skip to content

Commit

Permalink
Don't send YCMD requests for comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph Atkins-Turkish committed Jun 17, 2016
1 parent d7f3654 commit d7d3966
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ide/static/ide/js/autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ CloudPebble.Editor.Autocomplete = new (function() {
if(!token || (token.string.replace(/[^a-z0-9_]/gi, '').length < 1 && token.string != '.' && token.string != '->')) {
return;
}
if (token.type == "comment") {
return;
}
} catch(e) {
return;
}
Expand Down

0 comments on commit d7d3966

Please sign in to comment.