@@ -8,8 +8,8 @@ a given unit.
88
99## Capabilities
1010
11- The ` initialize ` request returns a boolean ` alsShowDepsProvider ` as part of
12- the ` capabilities ` , set to true if the server supports this functionality.
11+ The ` initialize ` request returns ` als-show-dependencies ` in the list of
12+ supported commands if the server supports this functionality.
1313
1414## Change description
1515
@@ -23,7 +23,7 @@ export namespace ALS_ShowDependenciesKind {
2323}
2424
2525interface ALS_ShowDependenciesParams {
26- textDocument : TextDocumentIdentifier ; /* The queried unit */
26+ uri : DocumentUri ; /* The queried unit */
2727 kind : ALS_ShowDependenciesKind ; /* The dependencies query kind */
2828 showImplicit : boolean ; /* True if implicit dependencies should be returned */
2929}
@@ -34,15 +34,16 @@ interface ALS_Unit_Description {
3434}
3535```
3636
37- And a new request :
37+ And a new command ` als-show-dependencies ` :
3838
39- method: ` textDocument/alsShowDependencies `
40- params: ` ALS_ShowDependenciesParams `
39+ method: `workspace/executeCommand`
40+ "params": {
41+ "command": "als-show-dependencies",
42+ "arguments": [
43+ <ALS_ShowDependenciesParams>
44+ ]
45+ }
4146
42- Returning the references to the method identified at the given position :
47+ It returns list of ` ALS_Unit_Description ` :
4348
4449 result: ` ALS_Unit_Description[] `
45-
46- We also introduce a new boolean field ` ALS_showDepsProvider ` in the
47- interface ` ServerCapabilities ` indicating whether the server supports
48- this extension.
0 commit comments