File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Expand file tree <
8000
path d="M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v12.5A1.75 1.75 0 0 1 14.25 16H1.75A1.75 1.75 0 0 1 0 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25H9.5v-13Zm12.5 13a.25.25 0 0 0 .25-.25V1.75a.25.25 0 0 0-.25-.25H11v13Z">Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,8 @@ export class LeetCodeTreeDataProvider implements vscode.TreeDataProvider<LeetCod
60
60
return explorerNodeManager . getRootNodes ( ) ;
61
61
} else {
62
62
switch ( element . id ) { // First-level
63
+ case Category . All :
64
+ return explorerNodeManager . getAllNodes ( ) ;
63
65
case Category . Favorite :
64
66
return explorerNodeManager . getFavoriteNodes ( ) ;
65
67
case Category . Difficulty :
Original file line number Diff line number Diff line change @@ -27,6 +27,10 @@ class ExplorerNodeManager implements Disposable {
27
27
<
8000
tr class="diff-line-row">28
28
public getRootNodes ( ) : LeetCodeNode [ ] {
29
29
return [
30
+ new LeetCodeNode ( Object . assign ( { } , defaultProblem , {
31
+ id : Category . All ,
32
+ name : Category . All ,
33
+ } ) , false ) ,
30
34
new LeetCodeNode ( Object . assign ( { } , defaultProblem , {
31
35
id : Category . Difficulty ,
32
36
name : Category . Difficulty ,
@@ -46,6 +50,10 @@ class ExplorerNodeManager implements Disposable {
46
50
] ;
47
51
}
48
52
53
+ public getAllNodes ( ) : LeetCodeNode [ ] {
54
+ return Array . from ( this . explorerNodeMap . values ( ) ) ;
55
+ }
56
+
49
57
public getAllDifficultyNodes ( ) : LeetCodeNode [ ] {
50
58
const res : LeetCodeNode [ ] = [ ] ;
51
59
res . push (
Original file line number Diff line number Diff line change @@ -86,6 +86,7 @@ export const defaultProblem: IProblem = {
86
86
} ;
87
87
88
88
export enum Category {
89
+ All = "All" ,
89
90
Difficulty = "Difficulty" ,
90
91
Tag = "Tag" ,
91
92
Company = "Company" ,
You can’t perform that action at this time.
0 commit comments