This repository was archived by the owner on Nov 6, 2018. It is now read-only.
File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 1
1
import { Subscription } from 'rxjs'
2
2
import { Context } from '../environment/context/context'
3
3
import { MessageConnection } from '../jsonrpc2/connection'
4
- import { Settings } from '../protocol'
4
+ import { InitializeParams , Settings } from '../protocol'
5
5
import { URI } from '../types/textDocument'
6
6
7
7
/**
@@ -10,6 +10,11 @@ import { URI } from '../types/textDocument'
10
10
* @template C the extension's settings
11
11
*/
12
12
export interface CXP < C = Settings > {
13
+ /**
14
+ * The params passed by the client in the `initialize` request.
15
+ */
16
+ initializeParams : InitializeParams
17
+
13
18
/**
14
19
* The root URI of the workspace in which this extension is running.
15
20
*
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ class ExtensionHandle<C> implements CXP<C> {
25
25
constructor ( public readonly rawConnection : MessageConnection , public readonly initializeParams : InitializeParams ) {
26
26
this . subscription . add ( this . rawConnection )
27
27
28
+ this . initializeParams = initializeParams
28
29
this . configuration = createExtConfiguration < C > (
29
30
this ,
30
31
initializeParams . configurationCascade as ConfigurationCascade < C >
You can’t perform that action at this time.
0 commit comments