Only init a Session for html & js files

This commit is contained in:
Erik Tierney committed 2013-05-14 11:00:43 -04:00
1 parent 3bc2bd8bd8
commit 72b3669769
2 files changed
+9 -2

No files matched your search

@@ -470,7 +470,7 @@ define(function (require, exports, module) {
cachedHints = null;
cachedType = null;
if (editor) {
if (editor && HintUtils.isSupportedLanguage(LanguageManager.getLanguageForPath(editor.document.file.fullPath).getId())) {
initializeSession(editor, true);
} else {
session = null;
@@ -552,7 +552,7 @@ define(function (require, exports, module) {
installEditorListeners(EditorManager.getActiveEditor());
var jsHints = new JSHints();
CodeHintManager.registerHintProvider(jsHints, [HintUtils.LANGUAGE_ID, "html"], 0);
CodeHintManager.registerHintProvider(jsHints, HintUtils.SUPPORTED_LANGUAGES, 0);
// for unit testing
exports.getSession = getSession;