diff options
| author | bors <bors@rust-lang.org> | 2023-05-02 14:49:38 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-05-02 14:49:38 +0000 |
| commit | a48e0e14e15abf47feae17e54d149eb443729375 (patch) | |
| tree | dfc55edf778735df9e4f3f276c75e707075204a4 /docs/dev | |
| parent | cffc402c058f9d4d0675ed20bd920fa700c361ec (diff) | |
| parent | ecfe7c04888a9c2567773370b127d2e6e1cdaa22 (diff) | |
| download | rust-a48e0e14e15abf47feae17e54d149eb443729375.tar.gz rust-a48e0e14e15abf47feae17e54d149eb443729375.zip | |
Auto merge of #11557 - bruno-ortiz:rust-dependencies, r=bruno-ortiz
Creating rust dependencies tree explorer Hello! I tried to implement a tree view that shows the dependencies of a project. It allows to see all dependencies to the project and it uses `cargo tree` for it. Also it allows to click and open the files, the viewtree tries its best to follow the openned file in the editor. Here is an example:  Any feedback is welcome since i have basically no professional experience with TS.
Diffstat (limited to 'docs/dev')
| -rw-r--r-- | docs/dev/lsp-extensions.md | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/docs/dev/lsp-extensions.md b/docs/dev/lsp-extensions.md index 42f58fee30e..a4ad3e5a553 100644 --- a/docs/dev/lsp-extensions.md +++ b/docs/dev/lsp-extensions.md @@ -1,5 +1,5 @@ <!--- -lsp_ext.rs hash: 31ca513a249753ab +lsp_ext.rs hash: fdf1afd34548abbc If you need to change the above hash to make the test pass, please check if you need to adjust this doc as well and ping this issue: @@ -851,3 +851,26 @@ export interface Diagnostic { rendered?: string; }; } +``` + +## Dependency Tree + +**Method:** `rust-analyzer/fetchDependencyList` + +**Request:** + +```typescript +export interface FetchDependencyListParams {} +``` + +**Response:** +```typescript +export interface FetchDependencyListResult { + crates: { + name: string; + version: string; + path: string; + }[]; +} +``` +Returns all crates from this workspace, so it can be used create a viewTree to help navigate the dependency tree. \ No newline at end of file |
