Skip to content

Commit d7d3966

Browse files
author
Joseph Atkins-Turkish
committed
Don't send YCMD requests for comments
1 parent d7f3654 commit d7d3966

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ide/static/ide/js/autocomplete.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,9 @@ CloudPebble.Editor.Autocomplete = new (function() {
148148
if(!token || (token.string.replace(/[^a-z0-9_]/gi, '').length < 1 && token.string != '.' && token.string != '->')) {
149149
return;
150150
}
151+
if (token.type == "comment") {
152+
return;
153+
}
151154
} catch(e) {
152155
return;
153156
}

0 commit comments

Comments
 (0)