mirror of
https://github.com/RustyRaptor/brackets.git
synced 2026-12-04 00:15:22 -07:00
Only init a Session for html & js files
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user