mirror of
https://github.com/RustyRaptor/brackets.git
synced 2026-12-04 00:15:22 -07:00
Remove default extension from untitled documents and new files
This commit is contained in:
1 parent
1d16b05eea
commit
4485ae8e22
2 files changed
+4
-9
No files matched your search
@@ -369,11 +369,6 @@ define(function (require, exports, module) {
|
||||
* @return {boolean} - can the provider provide hints for this session?
|
||||
*/
|
||||
JSHints.prototype.hasHints = function (editor, key) {
|
||||
if (editor && editor.document.isUntitled()) {
|
||||
// no hints for untitled documents
|
||||
return false;
|
||||
}
|
||||
|
||||
if (session && HintUtils.hintableKey(key)) {
|
||||
|
||||
if (isHTMLFile(session.editor.document)) {
|
||||
@@ -552,7 +547,7 @@ define(function (require, exports, module) {
|
||||
// always clean up cached scope and hint info
|
||||
resetCachedHintContext();
|
||||
|
||||
if (editor && !editor.document.isUntitled() && HintUtils.isSupportedLanguage(LanguageManager.getLanguageForPath(editor.document.file.fullPath).getId())) {
|
||||
if (editor && HintUtils.isSupportedLanguage(LanguageManager.getLanguageForPath(editor.document.file.fullPath).getId())) {
|
||||
initializeSession(editor, previousEditor);
|
||||
$(editor)
|
||||
.on(HintUtils.eventName("change"), function (event, editor, changeList) {
|
||||
|
||||
Reference in new issue
Block a user