Skip to content

Commit f2781a5

Browse files
author
automatic-merge
committed
Merge remote branch 'origin/master' into edge
2 parents 4196cd2 + c92073c commit f2781a5

28 files changed

+1503
-453
lines changed

doc/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Here are some implementations of custom features in the ALS implemented through
2424
## Feature description document
2525

2626
Each feature is described in a dedicated Markdown document.
27-
There is [a list of all features](.#list-of-features) at the end of this document.
27+
There is [a list of all features](.#list-of-features) at the end of this document.
2828
We provide a [template](./TEMPLATE.md) for convenience.
2929
The feature description document has the following structure:
3030

@@ -60,4 +60,5 @@ related resources.
6060
* [Reference kinds](reference_kinds.md)
6161
* [Show Dependencies](show_dependencies.md)
6262
* [Check Syntax](check_syntax.md)
63-
* [Executables](executables.md)
63+
* [Executables](executables.md)
64+
* [Call Hierarchy](callhierarchy.md)

doc/callhierarchy.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# CallHierarchyOutgoingCall / CallHierrachyIncomingCall
2+
3+
## Short introduction
4+
5+
The response types to the `callHierarchy/outgoingCalls` and `callHierarchy/incomingCalls` LSP requests
6+
have been customized in order to distinguish dispatching calls from non-dispatching ones.
7+
8+
9+
## Change description
10+
11+
Here is the modified version of the `CallHierarchyIncomingCall` LSP type:
12+
13+
```typescript
14+
export interface CallHierarchyIncomingCall {
15+
16+
/**
17+
* The item that makes the call.
18+
*/
19+
from: CallHierarchyItem;
20+
21+
/**
22+
* The ranges at which the calls appear. This is relative to the caller
23+
* denoted by [`this.from`](#CallHierarchyIncomingCall.from).
24+
*/
25+
fromRanges: Range[];
26+
27+
/**
28+
* Used to know which call listed in `fromRanges` is dispatching or not.
29+
The array length is equal to the `fromRanges` ones.
30+
*/
31+
dispatching_calls?: Boolean[];
32+
}
33+
```
34+
35+
Here is the modified version of the `CallHierarchyOutgoingCall` LSP type:
36+
37+
```typescript
38+
export interface CallHierarchyOutgoingCall {
39+
40+
/**
41+
* The item that is called.
42+
*/
43+
to: CallHierarchyItem;
44+
45+
/**
46+
* The range at which this item is called. This is the range relative to
47+
* the caller, e.g the item passed to `callHierarchy/outgoingCalls` request.
48+
*/
49+
fromRanges: Range[];
50+
51+
/**
52+
* Used to know which call listed in `fromRanges` is dispatching or not.
53+
The array length is equal to the `fromRanges` ones.
54+
*/
55+
dispatching_calls?: Boolean[];
56+
}
57+
```

0 commit comments

Comments
 (0)