This repository was archived by the owner on Oct 1, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 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> {
1515 // tslint:disable-next-line:member-ordering
1616 public readonly onDidChangeTreeData : vscode . Event < null > = this . _onDidChangeTreeData . event ;
1717
18- private _exmaples : IExampleNode [ ] = null ;
18+ private _examples : IExampleNode [ ] = null ;
1919
2020 constructor ( private _exampleManager : ExampleManager , private _boardManager : BoardManager ) {
2121 this . _boardManager . onBoardTypeChanged ( ( ) => {
@@ -28,24 +28,24 @@ export class ExampleProvider implements vscode.TreeDataProvider<ExampleItem> {
2828 }
2929
3030 public getChildren ( element ?: ExampleItem ) : ExampleItem [ ] {
31- if ( ! this . _exmaples ) {
31+ if ( ! this . _examples ) {
3232 this . loadData ( ) ;
3333 return null ;
3434 }
3535 if ( ! element ) {
36- return this . createExampleItemList ( this . _exmaples ) ;
36+ return this . createExampleItemList ( this . _examples ) ;
3737 } else {
3838 return this . createExampleItemList ( element . getChildren ( ) ) ;
3939 }
4040 }
4141
4242 private loadData ( ) {
43- this . _exmaples = null ;
43+ this . _examples = null ;
4444 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 ) ) {
4747 // Reset the examples list to get the welcome message (defined in package.json) to appear.
48- this . _exmaples = [ ] ;
48+ this . _examples = [ ] ;
4949 }
5050 this . _onDidChangeTreeData . fire ( null ) ;
5151 } ) ;
You can’t perform that action at this time.
0 commit comments