diff --git a/addon/tern/tern.js b/addon/tern/tern.js index 99b8a64682..eac117e81a 100644 --- a/addon/tern/tern.js +++ b/addon/tern/tern.js @@ -124,6 +124,8 @@ var self = this; var doc = findDoc(this, cm.getDoc()); var request = buildRequest(this, doc, query, pos); + var extraOptions = request.query && this.options.queryOptions && this.options.queryOptions[request.query.type] + if (extraOptions) for (var prop in extraOptions) request.query[prop] = extraOptions[prop]; this.server.request(request, function (error, data) { if (!error && self.options.responseFilter)