From 8a1dcdae68d8b211305bd537c3d098258429b7e8 Mon Sep 17 00:00:00 2001
From: Konstantin Shcheglov
The command-line arguments that can be passed to the server.
@@ -2811,7 +2814,90 @@
+ The analysis domain contains API’s related to Flutter support.
+
+ Subscribe for services that are specific to individual files.
+ All previous subscriptions are replaced by the current set of
+ subscriptions. If a given service is not included as a key in the map
+ then no files will be subscribed to the service, exactly as if the
+ service had been included in the map with an explicit empty list of
+ files.
+
+ Note that this request determines the set of requested
+ subscriptions. The actual set of subscriptions at any given
+ time is the intersection of this set with the set of files
+ currently subject to analysis. The files currently subject
+ to analysis are the set of files contained within an actual
+ analysis root but not excluded, plus all of the files
+ transitively reachable from those files via import, export
+ and part directives. (See analysis.setAnalysisRoots for an
+ explanation of how the actual analysis roots are
+ determined.) When the actual analysis roots change, the
+ actual set of subscriptions is automatically updated, but
+ the set of requested subscriptions is unchanged.
+
+ If a requested subscription is a directory it is ignored,
+ but remains in the set of requested subscriptions so that if
+ it later becomes a file it can be included in the set of
+ actual subscriptions.
+
+ It is an error if any of the keys in the map are not valid
+ services. If there is an error, then the existing
+ subscriptions will remain unchanged.
+
+ A table mapping services to a list of the files being
+ subscribed to the service.
+
+ Reports the Flutter outline associated with a single file.
+
+ This notification is not subscribed to by default. Clients
+ can subscribe by including the value "OUTLINE" in
+ the list of services passed in an flutter.setSubscriptions
+ request.
+
+ The file with which the outline is associated.
+
+ The outline associated with the file.
+
@@ -3699,7 +3785,149 @@ Domains
Command-line Arguments
returns:
-
+flutter domain
+ Requests
request: {
+ "id": String
+ "method": "flutter.setSubscriptions"
+ "params": {
+ "subscriptions": Map<FlutterService, List<FilePath>>
+ }
+}
response: {
+ "id": String
+ "error": optional RequestError
+}
parameters:
Notifications
notification: {
+ "event": "flutter.outline"
+ "params": {
+ "file": FilePath
+ "outline": FlutterOutline
+ }
+}
parameters:
Types
Types
not absolute or is not normalized, then an error of type
INVALID_FILE_PATH_FORMAT will be generated.
+ An node in the Flutter specific outline structure of a file. +
+ +The kind of the node.
++ The offset of the first character of the element. This is different + than the offset in the Element, which is the offset of the name of the + element. It can be used, for example, to map locations in the file + back to an outline. +
++ The length of the element. +
++ The offset of the first character of the element code, which is + neither documentation, nor annotation. +
++ The length of the element code. +
++ The text label of the node children of the node. + It is provided for any FlutterOutlineKind.GENERIC node, + where better information is not available. +
++ If this node is a Dart element, the description of it; omitted + otherwise. +
++ Additional attributes for this node, which might be interesting + to display on the client. These attributes are usually arguments + for the instance creation or the invocation that created the widget. +
++ If the node creates a new class instance, or a reference to an + instance, this field has the name of the class. +
++ A short text description how this node is associated with the parent + node. For example "appBar" or "body" in Scaffold. +
++ If FlutterOutlineKind.VARIABLE, the name of the variable. +
++ The children of the node. The field will be omitted if the node has no + children. +
++ An attribute for a FlutterOutline. +
+ ++ The name of the attribute. +
++ The label of the attribute value, usually the Dart code. + It might be quite long, the client should abbreviate as needed. +
++ The boolean literal value of the attribute. + This field is absent if the value is not a boolean literal. +
++ The integer literal value of the attribute. + This field is absent if the value is not an integer literal. +
++ The string literal value of the attribute. + This field is absent if the value is not a string literal. +
++ An enumeration of the kinds of FlutterOutline elements. The list of kinds + might be expanded with time, clients must be able to handle new kinds + in some general way. +
+ +A dart element declaration.
+A generic Flutter element, without additional information.
+A new instance creation.
+An invocation of a method, a top-level function, a function + expression, etc.
+A reference to a local variable, or a field.
+The parent node has a required Widget. The node works as a + placeholder child to drop a new Widget to.
++ An enumeration of the services provided by the flutter domain that + are related to a specific list of files. +
+ +An enumeration of the kinds of folding regions.
@@ -5536,7 +5764,7 @@