Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CLOSED] Live development: handle deleting CSS file on disk & discarding unsaved changes to CSS file #554

Open
core-ai-bot opened this issue Aug 29, 2021 · 4 comments

Comments

@core-ai-bot
Copy link
Member

Issue by peterflynn
Thursday Apr 05, 2012 at 01:37 GMT
Originally opened as adobe/brackets#558


  • Support CSS files being deleted in live development (now updates browser) -- CSSDocument now listens for Document's "deleted" event; it clears the CSS in the browser and also emits its own event that LiveDevelopment listens to so it knows to drop that file from its list of related documents
  • Support discarding unsaved changes to CSS file in live development (now updates browser) -- when choosing to discard unsaved changes, the Close command (DocumentCommandHandlers.handleFileClose()) now reverts the Document to the contents on disk so that any views other than the main editor which remain open (namely, the live development connection) don't continue reflecting the unsaved (now discarded) changes.
    This replaces the refreshText("") hack we used to have in Document._makeNonEditable().
  • Fixes exception in Document when unsaved changes are discarded but live development still has a ref to the doc (bug [CLOSED] Live editing ignores changes to added files #546)
  • Add assertion/warning if deleting a Document doesn't release all refs

peterflynn included the following code: https://github.com/adobe/brackets/pull/558/commits

@core-ai-bot
Copy link
Member Author

Comment by peterflynn
Thursday Apr 05, 2012 at 01:37 GMT


@gruehle: Would you like to review this one?

@core-ai-bot
Copy link
Member Author

Comment by gruehle
Thursday Apr 05, 2012 at 01:38 GMT


reviewing

@core-ai-bot
Copy link
Member Author

Comment by gruehle
Thursday Apr 05, 2012 at 01:53 GMT


Initial review complete

@core-ai-bot
Copy link
Member Author

Comment by gruehle
Thursday Apr 05, 2012 at 22:32 GMT


Looks good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant