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] Enabled the remaining agents #1280

Open
core-ai-bot opened this issue Aug 29, 2021 · 1 comment
Open

[CLOSED] Enabled the remaining agents #1280

core-ai-bot opened this issue Aug 29, 2021 · 1 comment

Comments

@core-ai-bot
Copy link
Member

Issue by jdiehl
Thursday Jul 26, 2012 at 06:28 GMT
Originally opened as adobe/brackets#1301


Please load the remaining agents for extension usage. Otherwise, there is no way to access this functionality.

Here is what the agents do:

  • EditAgent: listen to and execute edit events from the remote agent
  • GotoAgent: listen to and execute goto events from the remote agent + provide a goto (open document and show line) API
  • HighlightAgent: listen to and forward highlight events from the remote agent to the current live document
  • ScriptAgent: track loaded script resources, add DOM manipulation breakpoints and track these

Non of this should be very invasive. If you want to disable all remote functionality (the stuff that happens inside the Chrome life Preview) you should comment out the event listeners from RemoteAgent, instead:

106: Inspector.on("Page.loadEventFired", _onLoadEventFired);
107: Inspector.on("DOM.attributeModified", _onAttributeModified);

The first loads the remote functions into the active page and the second listens to dom changes and creates edit events if appropriate.


jdiehl included the following code: https://github.com/adobe/brackets/pull/1301/commits

@core-ai-bot
Copy link
Member Author

Comment by joelrbrandt
Thursday Jul 26, 2012 at 20:25 GMT


@jdiehl after some discussion with the team, we're hoping to enable this in a slightly different way. See #1303.

I incorporated your commit from this pull into #1301, so you'll still get "credit" :-)

Closing.

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