Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'editors/code/src/dependencies_provider.ts')
-rw-r--r--editors/code/src/dependencies_provider.ts22
1 files changed, 10 insertions, 12 deletions
diff --git a/editors/code/src/dependencies_provider.ts b/editors/code/src/dependencies_provider.ts
index f2838af6e0..3713250b8f 100644
--- a/editors/code/src/dependencies_provider.ts
+++ b/editors/code/src/dependencies_provider.ts
@@ -13,8 +13,8 @@ import * as ra from "./lsp_ext";
export class RustDependenciesProvider
implements vscode.TreeDataProvider<Dependency | DependencyFile>
{
-
- dependenciesMap: { [id: string]: Dependency | DependencyFile };ctx: CtxInit;
+ dependenciesMap: { [id: string]: Dependency | DependencyFile };
+ ctx: CtxInit;
constructor(private readonly workspaceRoot: string,ctx: CtxInit) {
this.dependenciesMap = {};
@@ -82,7 +82,10 @@ export class RustDependenciesProvider
private async getRootDependencies(): Promise<Dependency[]> {
const crates = await this.ctx.client.sendRequest(ra.fetchDependencyGraph, {});
- const dependenciesResult: FetchDependencyGraphResult = await this.ctx.client.sendRequest(ra.fetchDependencyGraph, {});
+ const dependenciesResult: FetchDependencyGraphResult = await this.ctx.client.sendRequest(
+ ra.fetchDependencyGraph,
+ {}
+ );
const crates = dependenciesResult.crates;
const deps = crates.map((crate) => {
const dep = this.toDep(crate.name, crate.version, crate.path);
@@ -93,15 +96,10 @@ export class RustDependenciesProvider
return deps;
}
- private toDep(moduleName: string, version: string, path: string): Dependency {
- //const cratePath = fspath.join(basePath, `${moduleName}-${version}`);
- return new Dependency(
- moduleName,
- version,
- path,
- vscode.TreeItemCollapsibleState.Collapsed
- );
- }
+ private toDep(moduleName: string, version: string, path: string): Dependency {
+ // const cratePath = fspath.join(basePath, `${moduleName}-${version}`);
+ return new Dependency(moduleName, version, path, vscode.TreeItemCollapsibleState.Collapsed);
+ }
}
export class Dependency extends vscode.TreeItem {