mirror of
https://github.com/RustyRaptor/brackets.git
synced 2026-12-04 00:15:22 -07:00
Merge branch 'master' into tern-experiments
Conflicts: src/extensions/default/JavaScriptCodeHints/HintUtils.js src/extensions/default/JavaScriptCodeHints/ScopeManager.js
This commit is contained in:
commit
98e37b1d1e
33 files changed
+1770
-191
No files matched your search
@@ -473,7 +473,7 @@ define(function (require, exports, module) {
|
||||
cachedHints = null;
|
||||
cachedType = null;
|
||||
|
||||
if (editor && editor.getModeForDocument() === HintUtils.MODE_NAME) {
|
||||
if (editor && editor.getLanguageForSelection().getId() === HintUtils.LANGUAGE_ID) {
|
||||
initializeSession(editor);
|
||||
$(editor)
|
||||
.on(HintUtils.eventName("change"), function () {
|
||||
@@ -520,7 +520,7 @@ define(function (require, exports, module) {
|
||||
installEditorListeners(EditorManager.getActiveEditor());
|
||||
|
||||
var jsHints = new JSHints();
|
||||
CodeHintManager.registerHintProvider(jsHints, [HintUtils.MODE_NAME], 0);
|
||||
CodeHintManager.registerHintProvider(jsHints, [HintUtils.LANGUAGE_ID], 0);
|
||||
|
||||
// for unit testing
|
||||
exports.jsHintProvider = jsHints;
|
||||
|
||||
Reference in new issue
Block a user