[analysis_Server] Sync with latest published LSP (TS) spec

Change-Id: If5003354491047bf18538c6c097ea21a34e44843
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/247222
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
This commit is contained in:
Danny Tuppeny
2022-06-06 14:11:13 +00:00
committed by Commit Bot
parent 633822fe73
commit 2deae5a599
2 changed files with 29 additions and 9 deletions
@@ -5407,7 +5407,7 @@ class CompletionClientCapabilitiesCompletionList implements ToJsonable {
);
}
/// The client supports the the following itemDefaults on a completion list.
/// The client supports the following itemDefaults on a completion list.
///
/// The value lists the supported property names of the
/// `CompletionList.itemDefaults` object. If omitted no properties are
@@ -23698,7 +23698,7 @@ class LocationLink implements ToJsonable {
final Range targetRange;
/// The range that should be selected and revealed when this link is being
/// followed, e.g the name of a function. Must be contained by the the
/// followed, e.g the name of a function. Must be contained by the
/// `targetRange`. See also `DocumentSymbol#range`
final Range targetSelectionRange;
@@ -45496,6 +45496,7 @@ class WorkspaceSymbol implements ToJsonable {
WorkspaceSymbol({
this.containerName,
this.data,
required this.kind,
required this.location,
required this.name,
@@ -45504,6 +45505,8 @@ class WorkspaceSymbol implements ToJsonable {
static WorkspaceSymbol fromJson(Map<String, Object?> json) {
final containerNameJson = json['containerName'];
final containerName = containerNameJson as String?;
final dataJson = json['data'];
final data = dataJson;
final kindJson = json['kind'];
final kind = SymbolKind.fromJson(kindJson as int);
final locationJson = json['location'];
@@ -45523,6 +45526,7 @@ class WorkspaceSymbol implements ToJsonable {
.toList();
return WorkspaceSymbol(
containerName: containerName,
data: data,
kind: kind,
location: location,
name: name,
@@ -45536,6 +45540,10 @@ class WorkspaceSymbol implements ToJsonable {
/// symbols.
final String? containerName;
/// A data entry field that is preserved on a workspace symbol between a
/// workspace symbol request and a workspace symbol resolve request.
final Object? data;
/// The kind of this symbol.
final SymbolKind kind;
@@ -45558,6 +45566,9 @@ class WorkspaceSymbol implements ToJsonable {
if (containerName != null) {
result['containerName'] = containerName;
}
if (data != null) {
result['data'] = data;
}
result['kind'] = kind.toJson();
result['location'] = location;
result['name'] = name;
@@ -45658,6 +45669,7 @@ class WorkspaceSymbol implements ToJsonable {
bool operator ==(Object other) {
if (other is WorkspaceSymbol && other.runtimeType == WorkspaceSymbol) {
return containerName == other.containerName &&
data == other.data &&
kind == other.kind &&
location == other.location &&
name == other.name &&
@@ -45670,6 +45682,7 @@ class WorkspaceSymbol implements ToJsonable {
@override
int get hashCode => Object.hash(
containerName,
data,
kind,
location,
name,
@@ -1005,7 +1005,7 @@ interface LocationLink {
/**
* The range that should be selected and revealed when this link is being
* followed, e.g the name of a function. Must be contained by the the
* followed, e.g the name of a function. Must be contained by the
* `targetRange`. See also `DocumentSymbol#range`
*/
targetSelectionRange: Range;
@@ -1295,6 +1295,7 @@ Parser | Version | Documentation
--------------- | ------- | -------------
marked | 1.1.0 | [Marked Documentation](https://marked.js.org/)
Python-Markdown | 3.2.2 | [Python-Markdown Documentation](https://python-markdown.github.io)
### <a href="#resourceChanges" name="resourceChanges" class="anchor"> File Resource changes </a>
> New in version 3.13. Since version 3.16 file resource changes can carry an additional property `changeAnnotation` to describe the actual change in more detail. Whether a client has support for change annotations is guarded by the client capability `workspace.workspaceEdit.changeAnnotationSupport`.
@@ -7389,7 +7390,7 @@ export interface CompletionClientCapabilities {
*/
completionList?: {
/**
* The client supports the the following itemDefaults on
* The client supports the following itemDefaults on
* a completion list.
*
* The value lists the supported property names of the
@@ -10243,6 +10244,14 @@ export interface WorkspaceSymbol {
*/
tags?: SymbolTag[];
/**
* The name of the symbol containing this symbol. This information is for
* user interface purposes (e.g. to render a qualifier in the user interface
* if necessary). It can't be used to re-infer a hierarchy for the document
* symbols.
*/
containerName?: string;
/**
* The location of this symbol. Whether a server is allowed to
* return a location without a range depends on the client
@@ -10253,12 +10262,10 @@ export interface WorkspaceSymbol {
location: Location | { uri: DocumentUri };
/**
* The name of the symbol containing this symbol. This information is for
* user interface purposes (e.g. to render a qualifier in the user interface
* if necessary). It can't be used to re-infer a hierarchy for the document
* symbols.
* A data entry field that is preserved on a workspace symbol between a
* workspace symbol request and a workspace symbol resolve request.
*/
containerName?: string;
data?: LSPAny;
}
```
* partial result: `SymbolInformation[]` \| `WorkspaceSymbol[]` as defined above.