File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import { extensionContext } from "./extension";
4
4
5
5
export interface DubDependencyInfo {
6
6
name : string ;
7
+ failed ?: boolean ;
7
8
version : string ;
8
9
path : string ;
9
10
description : string ;
@@ -20,7 +21,7 @@ export class DubDependency extends vscode.TreeItem {
20
21
constructor ( info : DubDependencyInfo , command ?: vscode . Command , icon ?: string ) ;
21
22
constructor ( info : string , command ?: vscode . Command , icon ?: string ) ;
22
23
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)" : "" ) ,
24
25
typeof info == "string" ? vscode . TreeItemCollapsibleState . None : vscode . TreeItemCollapsibleState . Collapsed ) ;
25
26
if ( typeof info == "object" ) {
26
27
this . info = info ;
You can’t perform that action at this time.
0 commit comments