You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 6, 2021. It is now read-only.
Brackets v1.9.0 added support for creating untitled files with extensions (along with the ability to change language types in untitled files). See Brackets 13086. When using DocumentManager.createUntitledDocument(count, ext);, everything works as expected until you save. The bug is that when you save an untitled file with an extension, the filename outputted into the save-as dialog treats the untitled documents extension as part of its filename and appends the extension again. In other words, the save-as dialogs filename has the extension twice.
Steps to Reproduce
Create an untitled document with an extension using the DocumentManager.
To expedite this step, you can use my plugin AnyTemplate (which creates an untitled file with an extension).
Save the file.
Expected behavior: The untitled files name should not include the extension twice.
Actual behavior: The untitled files name includes the extension twice when saving. It outputs like this: Untitled-1.js.js.