Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'editors/code/src/lsp_ext.ts')
-rw-r--r--editors/code/src/lsp_ext.ts16
1 files changed, 16 insertions, 0 deletions
diff --git a/editors/code/src/lsp_ext.ts b/editors/code/src/lsp_ext.ts
index 1a887b3720..f066a1c654 100644
--- a/editors/code/src/lsp_ext.ts
+++ b/editors/code/src/lsp_ext.ts
@@ -86,6 +86,22 @@ export const fetchDependencyGraph = new lc.RequestType<
void
>("rust-analyzer/fetchDependencyGraph");
+export interface FetchDependencyGraphParams {}
+
+export interface FetchDependencyGraphResult {
+ crates: {
+ name: string;
+ version: string;
+ path: string;
+ }[];
+}
+
+export const fetchDependencyGraph = new lc.RequestType<
+ FetchDependencyGraphParams,
+ FetchDependencyGraphResult,
+ void
+>("rust-analyzer/fetchDependencyGraph");
+
export type ExpandMacroParams = {
textDocument: lc.TextDocumentIdentifier;
position: lc.Position;