mirror of
https://github.com/RustyRaptor/brackets.git
synced 2026-12-04 00:15:22 -07:00
Fixing issue #2923 - Getting mode from file extension won't always work
This commit is contained in:
1 parent
d4a54913d2
commit
6fee2100fe
6 files changed
+86
-18
No files matched your search
@@ -440,7 +440,7 @@ define(function (require, exports, module) {
|
||||
file = split.file;
|
||||
|
||||
if (file.indexOf(".") > 1) { // ignore /.dotfiles
|
||||
var mode = LanguageManager.getLanguageForFileExtension(entry.fullPath).getMode();
|
||||
var mode = LanguageManager.getLanguageFromFilePath(entry.fullPath).getMode();
|
||||
if (mode === HintUtils.MODE_NAME) {
|
||||
DocumentManager.getDocumentForPath(path).done(function (document) {
|
||||
refreshOuterScope(dir, file, document.getText());
|
||||
|
||||
Reference in new issue
Block a user