parameter hint fixes

This commit is contained in:
dloverin committed 2013-08-01 21:05:07 -04:00
1 parent 9e15de2eb7
commit a9c916726f
5 files changed
+135 -64

No files matched your search

@@ -187,12 +187,12 @@ define(function (require, exports, module) {
type = session.getType();
return !cachedHints || !cachedCursor || !cachedType ||
cachedCursor.line !== cursor.line ||
type.property !== cachedType.property ||
type.context !== cachedType.context ||
type.showFunctionType !== cachedType.showFunctionType ||
(type.functionCallPos && cachedType.functionCallPos &&
type.functionCallPos.ch !== cachedType.functionCallPos.ch);
cachedCursor.line !== cursor.line ||
type.property !== cachedType.property ||
type.context !== cachedType.context ||
type.showFunctionType !== cachedType.showFunctionType ||
(type.functionCallPos && cachedType.functionCallPos &&
type.functionCallPos.ch !== cachedType.functionCallPos.ch);
};
/**
@@ -788,6 +788,8 @@ define(function (require, exports, module) {
var jsHints = new JSHints();
CodeHintManager.registerHintProvider(jsHints, HintUtils.SUPPORTED_LANGUAGES, 0);
FunctionHintManager.addFunctionHintCommand();
// for unit testing
exports.getSession = getSession;
exports.jsHintProvider = jsHints;