-
Notifications
You must be signed in to change notification settings - Fork 520
Commit d429beb
committed
Refactor
This makes a lot more sense and fixes a long-standing bug. Also cleaned up a
lot while at it.
1. `SessionManager` is created and the features are injected into the session
manager with the intention of them being able to "register" their language
client event handlers in the period between when the client is created and when
it is started.
2. For each feature, if it gets to a point where it needs the language client,
we want them to wait on a promise for the "started" client to be provided from
the session manager before continuing.
3. Once it is started, the session manager passes the client to
`LanguageClientConsumer` which resolves the promise for the features so they can
continue.LanguageClientConsumer
to wait properly1 parent 2b00cc4 commit d429beb
File tree
16 files changed
+318
-424
lines changed- src
- features
- test/features
16 files changed
+318
-424
lines changedLines changed: 4 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
8 | - | ||
8 | + | ||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
16 | - | ||
16 | + | ||
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
23 | - | ||
23 | + | ||
24 | 24 |
| |
25 | 25 |
| |
26 | - | ||
26 | + | ||
27 | 27 |
| |
28 | 28 |
| |
29 | 29 |
| |
|
Lines changed: 6 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
200 | 200 |
| |
201 | 201 |
| |
202 | 202 |
| |
203 | - | ||
204 | - | ||
203 | + | ||
204 | + | ||
205 | 205 |
| |
206 | 206 |
| |
207 | 207 |
| |
| |||
217 | 217 |
| |
218 | 218 |
| |
219 | 219 |
| |
220 | + | ||
220 | 221 |
| |
221 | 222 |
| |
222 | 223 |
| |
223 | 224 |
| |
224 | 225 |
| |
225 | - | ||
226 | - | ||
226 | + | ||
227 | 227 |
| |
228 | - | ||
228 | + | ||
229 | 229 |
| |
230 | 230 |
| |
231 | 231 |
| |
232 | - | ||
232 | + | ||
233 | 233 |
| |
234 | 234 |
| |
235 | 235 |
| |
|
0 commit comments