diff --git a/pkg/analyzer_plugin/CHANGELOG.md b/pkg/analyzer_plugin/CHANGELOG.md index d243c8afca54..2368dbea9844 100644 --- a/pkg/analyzer_plugin/CHANGELOG.md +++ b/pkg/analyzer_plugin/CHANGELOG.md @@ -2,6 +2,8 @@ - Remove `elementName()` from `RangeFactory`. Use `fragmentName()` instead. - Breaking changes to `DartFileEditBuilder` and `DartEditBuilder`. - Breaking changes to `AnalyzerConverter`. +- Support for a plugin to send an `AnalysisStatus` notification, featuring an + `isAnalyzing` `bool` field. ## 0.12.0 - Breaking changes to `DartFileEditBuilder`: `convertFunctionFromSyncToAsync` diff --git a/pkg/analyzer_plugin/doc/api.html b/pkg/analyzer_plugin/doc/api.html index 6c4271dce65a..d75922d57fc3 100644 --- a/pkg/analyzer_plugin/doc/api.html +++ b/pkg/analyzer_plugin/doc/api.html @@ -138,6 +138,7 @@
request: { "id": String "method": "plugin.versionCheck" @@ -262,6 +263,26 @@parameters:
notification: { + "event": "plugin.status" + "params": { + "analysis": optional AnalysisStatus + } +}
+ Reports the current status of the plugin. Parameters are omitted if there + has been no change in the status represented by that parameter. +
++ Only used for "new" analyzer plugins. Legacy plugins should not use + this type. +
+ ++ The current status of analysis (whether analysis is being performed). +
@@ -844,6 +865,7 @@
A directive to begin overlaying the contents of a file. The supplied @@ -957,7 +979,19 @@
+ An indication of the current state of analysis. +
++ Only used for "new" analyzer plugins. Legacy plugins should not use + this type. +
+ +True if analysis is currently being performed.
+A directive to modify an existing file content overlay. One or more ranges of text are deleted from the old file content overlay and replaced with @@ -2379,6 +2413,6 @@