devtools icon indicating copy to clipboard operation
devtools copied to clipboard

Wire up the analyzer server to the devtools client

Open jacob314 opened this issue 7 years ago • 3 comments

There are cases such as displaying doc comments, autocompleting expressions, and getting types where having access to the analyzer service is needed.

TBD: the most robust way to wire up the analyzer to the web app. IDEs such as VSCode already have an analyzer service running but command line users do not.

jacob314 avatar Dec 27 '18 01:12 jacob314

We could use the service protocol as an intermediary layer here. The service protocol has a way for clients to register services (_registerService), and other clients can then invoke them. flutter_tools currently exposes hot reload as a service this way - a web based client can invoke hot reload in a running flutter app by calling this service.

So an IDE could register a 'getAnalyzer' service, or flutter_tools could as well. The analysis server is not designed to have more than one client, so we may want either a separate analysis server process, or to expose very specific functionality over the service protocol (doc comments, code completion, ...).

devoncarew avatar Jan 02 '19 15:01 devoncarew

using the service protocol as an intermediary layer makes sense.

jacob314 avatar Jan 02 '19 16:01 jacob314

This is a pre-requisite for the property editing work. https://github.com/flutter/devtools/issues/1948

kenzieschmoll avatar Oct 17 '24 20:10 kenzieschmoll

Completed in:

  • https://github.com/flutter/devtools/pull/8598
  • https://github.com/flutter/devtools/pull/8632

elliette avatar Jan 14 '25 18:01 elliette