njx / brackets-livedev2 Goto Github PK
View Code? Open in Web Editor NEWExperiments in refactoring Brackets live development to support multiple targets.
License: MIT License
Experiments in refactoring Brackets live development to support multiple targets.
License: MIT License
Live editing of embedded JS is not propagating any changes to the live page. It could reload the page as when editing external JS files after saving the .html file.
This is a follow up to this @redmunds and @sebaslv discussion here. We need to figure out how we want to land this extension in the mainstream Brackets. While everybody's busy with the 1.0 release, @sebaslv and I could start working on actually landing the extension in the editor. We have to agree on which of the options is the way we want to go. There are a few options as I see them:
I like the 3rd option the best -- it puts this implementation on par with the existing one and allows us to reorganize the existing LD code to share it more efficiently. Also, it will make our lives easier when later we would want to make this version the "mainstream" one.
There's also some code which has not been contributed yet because we don't have a decision. E.g. browser launch (we have implementation for Firefox and Chrome in JS, in Brackets it's done via shell for Chrome only), enabling live development on remote machines (there's some demand for that in Brackets as well, requires changes in core editor). Let's discuss what's the best approach to this.
Following up on issue #21, which uses the Brackets Smoke Tests files edited to access desktop.css using a <link>
instead of @import
then it (partially) works:
Notice in Step 39 of Smoke Tests that background color is repainted, but it's repainted over the images!
I'm using latest Firefox on Win7.
There is a unique handler in ProtocolHandler at LiveDevProtocolRemote that parses the message to identify the method and do something there. Need a more extensible way of registering new methods and provide their implementations separately from this handler.
Initial page loads, but almost nothing else works in IE. I'm using Version 11.0.9600.17239 on Win7.
IE does not update even after saving page in Brackets. Interesting that if you Reload page from IE it pickups changes -- even unsaved changes in Brackets! So, it seems like text is getting updated in browser, but browser is not refreshing.
Lightning bolt doesn't turn off when browser preview is closed. Haven't thought through how we should indicate in the UI when multiple browser clients are active, and whether we should turn the lightning bolt off when the last one disconnects.
setCallbacks()
actually also initiates the connection, so maybe it should be renamed to something like connectWithCallbacks()
.
Please update!
It is manifested when the current file in the editor is not the live HTML document (eg. a related JS file).
HTMLIntrsumentation.generateInstrumentedHTML
throws an exception at line 756 because editor=null
. When the page is reloaded, the server asks for the instrumented document but at that time the editor seems to be previously detached by LiveDocument._onActiveEditorChange
and LiveDocument._close
Switching files in Brackets opens a new tab (and old tab is no longer connected, but there's no visible indication to the user). This is partly FOL due to closing live dev not closing the window in the browser.
Following the Brackets Smoke Tests here: https://github.com/adobe/brackets/wiki/Brackets-Smoke-Tests
CSS does not update when edited. Even worse the entire stylesheet seems to be lost! After edting this page to access desktop.css using a <link>
instead of @import
then it works (uh, partially -- see #22) I'm on the latest Firefox on Win7.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.