mirror of
https://github.com/dart-lang/sdk
synced 2024-09-18 20:21:21 +00:00
Switch to protocol version 1.33.0, enable new completion protocol.
Change-Id: Ib7de4d616cba91bfe3b014199b6aacaa01c9c052 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/239322 Reviewed-by: Jaime Wren <jwren@google.com> Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
This commit is contained in:
parent
4b47910994
commit
16fadd69a6
File diff suppressed because one or more lines are too long
|
@ -6,7 +6,7 @@
|
|||
// To regenerate the file, use the script
|
||||
// "pkg/analysis_server/tool/spec/generate_files".
|
||||
|
||||
const String PROTOCOL_VERSION = '1.32.10';
|
||||
const String PROTOCOL_VERSION = '1.33.0';
|
||||
|
||||
const String ANALYSIS_NOTIFICATION_ANALYZED_FILES = 'analysis.analyzedFiles';
|
||||
const String ANALYSIS_NOTIFICATION_ANALYZED_FILES_DIRECTORIES = 'directories';
|
||||
|
|
|
@ -288,6 +288,8 @@ final Matcher isCompletionService =
|
|||
/// "hasNamedParameters": optional bool
|
||||
/// "parameterName": optional String
|
||||
/// "parameterType": optional String
|
||||
/// "libraryUri": optional String
|
||||
/// "isNotImported": optional bool
|
||||
/// }
|
||||
final Matcher isCompletionSuggestion =
|
||||
LazyMatcher(() => MatchesJsonObject('CompletionSuggestion', {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<body>
|
||||
<h1>Analysis Server API Specification</h1>
|
||||
<h1 style="color:#999999">Version
|
||||
<version>1.32.10</version>
|
||||
<version>1.33.0</version>
|
||||
</h1>
|
||||
<p>
|
||||
This document contains a specification of the API provided by the
|
||||
|
@ -134,6 +134,11 @@
|
|||
ignoring the item or treating it with some default/fallback handling.
|
||||
</p>
|
||||
<h3>Changelog</h3>
|
||||
<h4>1.33.0</h4>
|
||||
<ul>
|
||||
<li>Requests <tt>getSuggestions2</tt> and <tt>getSuggestionDetails2</tt>
|
||||
are enabled.</li>
|
||||
</ul>
|
||||
<h4>1.32.10</h4>
|
||||
<ul>
|
||||
<li>The <tt>MOVE_FILE</tt> refactor now supports moving/renaming folders.</li>
|
||||
|
@ -1485,7 +1490,7 @@
|
|||
</field>
|
||||
</result>
|
||||
</request>
|
||||
<request method="getSuggestions2" experimental="true">
|
||||
<request method="getSuggestions2">
|
||||
<p>
|
||||
Request that completion suggestions for the given offset in the given
|
||||
file be returned. The suggestions will be filtered using fuzzy matching
|
||||
|
@ -1690,7 +1695,7 @@
|
|||
</field>
|
||||
</result>
|
||||
</request>
|
||||
<request method="getSuggestionDetails2" experimental="true">
|
||||
<request method="getSuggestionDetails2">
|
||||
<p>
|
||||
Clients must make this request when the user has selected a completion
|
||||
suggestion with the <tt>isNotImported</tt> field set to <tt>true</tt>.
|
||||
|
|
|
@ -504,6 +504,8 @@ class ChangeContentOverlay implements HasToJson {
|
|||
/// "hasNamedParameters": optional bool
|
||||
/// "parameterName": optional String
|
||||
/// "parameterType": optional String
|
||||
/// "libraryUri": optional String
|
||||
/// "isNotImported": optional bool
|
||||
/// }
|
||||
///
|
||||
/// Clients may not extend, implement or mix-in this class.
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
// To regenerate the file, use the script
|
||||
// "pkg/analysis_server/tool/spec/generate_files".
|
||||
|
||||
const String PROTOCOL_VERSION = '1.32.10';
|
||||
const String PROTOCOL_VERSION = '1.33.0';
|
||||
|
||||
const String ANALYSIS_NOTIFICATION_ANALYZED_FILES = 'analysis.analyzedFiles';
|
||||
const String ANALYSIS_NOTIFICATION_ANALYZED_FILES_DIRECTORIES = 'directories';
|
||||
|
|
|
@ -1149,6 +1149,37 @@ a:focus, a:hover {
|
|||
The type of the options parameter being suggested. This field is
|
||||
omitted if the parameterName field is omitted.
|
||||
</p>
|
||||
</dd><dt class="field"><b>libraryUri: String<span style="color:#999999"> (optional)</span></b></dt><dd>
|
||||
|
||||
<p>
|
||||
This field is omitted if <tt>getSuggestions</tt> was used rather
|
||||
than <tt>getSuggestions2</tt>.
|
||||
</p>
|
||||
<p>
|
||||
This field is omitted if this suggestion corresponds to a locally
|
||||
declared element.
|
||||
</p>
|
||||
<p>
|
||||
If this suggestion corresponds to an already imported element,
|
||||
then this field is the URI of a library that provides this element,
|
||||
not the URI of the library where the element is declared.
|
||||
</p>
|
||||
<p>
|
||||
If this suggestion corresponds to an element from a not yet
|
||||
imported library, this field is the URI of a library that could be
|
||||
imported to make this suggestion accessible in the file where
|
||||
completion was requested, such as <tt>package:foo/bar.dart</tt> or
|
||||
<tt>file:///home/me/workspace/foo/test/bar_test.dart</tt>.
|
||||
</p>
|
||||
</dd><dt class="field"><b>isNotImported: bool<span style="color:#999999"> (optional)</span></b></dt><dd>
|
||||
|
||||
<p>
|
||||
True if the suggestion is for an element from a not yet imported
|
||||
library. This field is omitted if the element is declared locally,
|
||||
or is from library is already imported, so that the suggestion can
|
||||
be inserted as is, or if <tt>getSuggestions</tt> was used rather
|
||||
than <tt>getSuggestions2</tt>.
|
||||
</p>
|
||||
</dd></dl></dd><dt class="typeDefinition"><a name="type_CompletionSuggestionKind">CompletionSuggestionKind: String</a></dt><dd>
|
||||
<p>
|
||||
An enumeration of the kinds of elements that can be included in a
|
||||
|
|
|
@ -504,6 +504,8 @@ class ChangeContentOverlay implements HasToJson {
|
|||
/// "hasNamedParameters": optional bool
|
||||
/// "parameterName": optional String
|
||||
/// "parameterType": optional String
|
||||
/// "libraryUri": optional String
|
||||
/// "isNotImported": optional bool
|
||||
/// }
|
||||
///
|
||||
/// Clients may not extend, implement or mix-in this class.
|
||||
|
|
|
@ -138,6 +138,8 @@ final Matcher isChangeContentOverlay = LazyMatcher(() => MatchesJsonObject(
|
|||
/// "hasNamedParameters": optional bool
|
||||
/// "parameterName": optional String
|
||||
/// "parameterType": optional String
|
||||
/// "libraryUri": optional String
|
||||
/// "isNotImported": optional bool
|
||||
/// }
|
||||
final Matcher isCompletionSuggestion =
|
||||
LazyMatcher(() => MatchesJsonObject('CompletionSuggestion', {
|
||||
|
|
|
@ -380,7 +380,7 @@
|
|||
omitted if the parameterName field is omitted.
|
||||
</p>
|
||||
</field>
|
||||
<field name="libraryUri" experimental="true" optional="true">
|
||||
<field name="libraryUri" optional="true">
|
||||
<ref>String</ref>
|
||||
<p>
|
||||
This field is omitted if <tt>getSuggestions</tt> was used rather
|
||||
|
@ -403,7 +403,7 @@
|
|||
<tt>file:///home/me/workspace/foo/test/bar_test.dart</tt>.
|
||||
</p>
|
||||
</field>
|
||||
<field name="isNotImported" optional="true" experimental="true">
|
||||
<field name="isNotImported" optional="true">
|
||||
<ref>bool</ref>
|
||||
<p>
|
||||
True if the suggestion is for an element from a not yet imported
|
||||
|
|
Loading…
Reference in a new issue