Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Conversation

@bchintx
Copy link
Contributor

@bchintx bchintx commented Jul 19, 2013

Fixed issue #4489- "Save/Close All with multiple untitled documents gives ambiguous Save dialogs"

When prompting to save-as an untitled document, activate that document in the editor. This causes the untitled document to display in the editor and prepopulate the untitled document's name (eg. "Untitled-1") in the Save As dialog.

As a result, if the user does, for example, a Save All, then as each untitled document is prompting to save, Brackets will switch to and display that specific document.

Successfully completed all 'Unit", "Integration", and "Extensions" unit tests on both Mac and Win.

@peterflynn
Copy link
Member

Cool -- this has several side effects that I like:

@peterflynn
Copy link
Member

@bchintx Code reviewed, look good to me. I wrote a quick unit test for the "side effect fix" issue mentioned above, and added it to your branch -- hope you don't mind. I verified that it fails without your patch and passes with it. Do you want to take a quick look at it before we merge this?

@bchintx
Copy link
Contributor Author

bchintx commented Jul 21, 2013

@peterflynn Thanks for the comments, and thanks for adding the unit test. The commit you added looks great. Please feel free to merge this when you are ready.

@peterflynn
Copy link
Member

Np! Merging...

peterflynn added a commit that referenced this pull request Jul 22, 2013
Fixed issue #4489- "Save/Close All with multiple untitled documents gives ambiguous Save dialogs"
@peterflynn peterflynn merged commit 6e6b49b into master Jul 22, 2013
@bchintx bchintx deleted the bchin/issue-4489 branch July 22, 2013 18:50
peterflynn added a commit that referenced this pull request Jul 23, 2013
…eanups

* origin/master: (1140 commits)
  Documentation nits from code review
  Updated by ALF automation.
  Updated by ALF automation.
  Unit test for Save As bug related to untitled documents (see note at #4468 (comment)). Fixed as a side effect of PR #4514.
  - Add unit test that @bchintx wrote to cover #4484. - Remove redundant timeout args in unit tests (same val as default) - Fix JSLint whitespace errors I noticed in ProjectManager
  Using "workingSetSort" instead of "workingSetAdd" in certain cases of addToWorkingSet() was problematic, since FileViewController attaches specific meaning only to the latter.
  Cosmetic tweaks to modal header background color, tables, and typography.
  Attempt a cleaner fix for bug #4484 (Working set broken after Save As / save untitled outside project): * addToWorkingSet() ensures item is moved to requested index, even if it was already in the working set at some other index * Add a force flag, so we can guarantee a redraw after suppressing it during removal earlier * Call handleFileAddToWorkingSet() directly from _doSaveAs() to simplify plumbing (no advantage to going through FileViewController in this case)
  code review comments
  add registry URLs
  add unit tests for update button and registryUpdate event
  fix async close of dialog in afterEach
  update extension manager spinner and registry UI unit tests. update sanity check string.
  when prompting to save-as an untitled document, activate that document in the editor
  Updated by ALF automation.
  Disabling failing unit tests
  code review comments part 2
  change layout for extension manager messages
  Updated by ALF automation.
  oops, of course can't use CollectionUtils...
  ...

Conflicts:
	src/language/LanguageManager.js
	src/widgets/Dialogs.js
	test/spec/Editor-test.js
	test/spec/FileIndexManager-test.js
	test/spec/InstallExtensionDialog-test.js
	test/spec/SpecRunnerUtils.js
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants