diff --git a/addon/tern/tern.js b/addon/tern/tern.js index 99b8a64682..d227d5fa13 100644 --- a/addon/tern/tern.js +++ b/addon/tern/tern.js @@ -452,7 +452,7 @@ var token = cm.getTokenAt(cm.getCursor()); if (!/\w/.test(token.string)) return showError(ts, cm, "Not at a variable"); dialog(cm, "New name for " + token.string, function(newName) { - ts.request(cm, {type: "rename", newName: newName, fullDocs: true}, function(error, data) { + ts.request(cm, {type: "rename", newName: newName, fullDocs: true, caseInsensitive: ts.options.caseInsensitive}, function(error, data) { if (error) return showError(ts, cm, error); applyChanges(ts, data.changes); });