[assist] Fix js error from fetching locations
}
}
+ if (e.data.errors) {
e.data.errors.forEach(function (error) {
if (error.expected.length > 0) {
var token = editor.session.getTokenAt(error.loc.first_line - 1, error.loc.first_column);
}
});
}
+ }
var lastKnownLocations = { id: $el.attr("id"), type: snippet.type(), defaultDatabase: snippet.database(), locations: e.data.locations };
