skip non-golang autocomplete
This commit is contained in:
parent
7b62a9b3ed
commit
dc74ec281a
|
@ -406,6 +406,11 @@ var editors = {
|
|||
});
|
||||
|
||||
CodeMirror.commands.autocompleteAfterDot = function (cm) {
|
||||
var mode = cm.getMode();
|
||||
if (mode && "go" !== mode.name) {
|
||||
return CodeMirror.Pass;
|
||||
}
|
||||
|
||||
var token = cm.getTokenAt(cm.getCursor());
|
||||
|
||||
if ("comment" === token.type || "string" === token.type) {
|
||||
|
|
Loading…
Reference in New Issue