Skip to content

Commit

Permalink
[tern addon] Support a queryOptions option that allows configuring qu…
Browse files Browse the repository at this point in the history
…eries

Issue codemirror#3308
  • Loading branch information
marijnh authored and Chris Tucker committed Jun 16, 2015
1 parent 994281f commit 02f69d5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions addon/tern/tern.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 02f69d5

Please sign in to comment.