Skip to content

Commit 346409b

Browse files
committed
show when dub dependencies failed to load
1 parent fa9bc2a commit 346409b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/dub-view.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { extensionContext } from "./extension";
44

55
export interface DubDependencyInfo {
66
name: string;
7+
failed?: boolean;
78
version: string;
89
path: string;
910
description: string;
@@ -20,7 +21,7 @@ export class DubDependency extends vscode.TreeItem {
2021
constructor(info: DubDependencyInfo, command?: vscode.Command, icon?: string);
2122
constructor(info: string, command?: vscode.Command, icon?: string);
2223
constructor(info: DubDependencyInfo | string, command?: vscode.Command, icon?: string) {
23-
super(typeof info == "string" ? info : info.name + ": " + info.version,
24+
super(typeof info == "string" ? info : info.name + ": " + info.version + (info.failed ? " (failed loading)" : ""),
2425
typeof info == "string" ? vscode.TreeItemCollapsibleState.None : vscode.TreeItemCollapsibleState.Collapsed);
2526
if (typeof info == "object") {
2627
this.info = info;

0 commit comments

Comments
 (0)