This repository was archived by the owner on Oct 1, 2024. It is now read-only.
File tree 1 file changed +7
-7
lines changed 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export class ExampleProvider implements vscode.TreeDataProvider<ExampleItem> {
15
15
// tslint:disable-next-line:member-ordering
16
16
public readonly onDidChangeTreeData : vscode . Event < null > = this . _onDidChangeTreeData . event ;
17
17
18
- private _exmaples : IExampleNode [ ] = null ;
18
+ private _examples : IExampleNode [ ] = null ;
19
19
20
20
constructor ( private _exampleManager : ExampleManager , private _boardManager : BoardManager ) {
21
21
this . _boardManager . onBoardTypeChanged ( ( ) => {
@@ -28,24 +28,24 @@ export class ExampleProvider implements vscode.TreeDataProvider<ExampleItem> {
28
28
}
29
29
30
30
public getChildren ( element ?: ExampleItem ) : ExampleItem [ ] {
31
- if ( ! this . _exmaples ) {
31
+ if ( ! this . _examples ) {
32
32
this . loadData ( ) ;
33
33
return null ;
34
34
}
35
35
if ( ! element ) {
36
- return this . createExampleItemList ( this . _exmaples ) ;
36
+ return this . createExampleItemList ( this . _examples ) ;
37
37
} else {
38
38
return this . createExampleItemList ( element . getChildren ( ) ) ;
39
39
}
40
40
}
41
41
42
42
private loadData ( ) {
43
- this . _exmaples = null ;
43
+ this . _examples = null ;
44
44
this . _exampleManager . loadExamples ( ) . then ( ( examples ) => {
45
- this . _exmaples = examples ;
46
- if ( ! this . hasAnyExamples ( this . _exmaples ) ) {
45
+ this . _examples = examples ;
46
+ if ( ! this . hasAnyExamples ( this . _examples ) ) {
47
47
// Reset the examples list to get the welcome message (defined in package.json) to appear.
48
- this . _exmaples = [ ] ;
48
+ this . _examples = [ ] ;
49
49
}
50
50
this . _onDidChangeTreeData . fire ( null ) ;
51
51
} ) ;
You can’t perform that action at this time.
0 commit comments