@@ -20,18 +20,18 @@ class CmdTreeDataProvider implements vscode.TreeDataProvider<vscode.TreeItem> {
2020
2121 if ( isRTThreadProject ( ) !== true && isRTThreadWorksapce ( ) !== true ) {
2222 // only show Create Project and RT-Thread Setting command when not in RT-Thread project
23- let createProject = new vscode . TreeItem ( "create project " , vscode . TreeItemCollapsibleState . None ) ;
23+ let createProject = new vscode . TreeItem ( "Create Project " , vscode . TreeItemCollapsibleState . None ) ;
2424 createProject . iconPath = new vscode . ThemeIcon ( "new-folder" ) ;
25- createProject . label = "create project " ;
25+ createProject . label = "Create Project " ;
2626 createProject . command = {
2727 command : "extension.showCreateProject" ,
2828 title : "show create project page" ,
2929 arguments : [ ] ,
3030 } ;
3131
32- let rtSetting = new vscode . TreeItem ( "rt-thread setting " , vscode . TreeItemCollapsibleState . None ) ;
32+ let rtSetting = new vscode . TreeItem ( "RT-Thread Setting " , vscode . TreeItemCollapsibleState . None ) ;
3333 rtSetting . iconPath = new vscode . ThemeIcon ( "settings-gear" ) ;
34- rtSetting . label = "rt-thread setting " ;
34+ rtSetting . label = "RT-Thread Setting " ;
3535 rtSetting . command = {
3636 command : "extension.showSetting" ,
3737 title : "show rt-thread setting page" ,
@@ -47,35 +47,26 @@ class CmdTreeDataProvider implements vscode.TreeDataProvider<vscode.TreeItem> {
4747 arguments : [ ] ,
4848 } ;
4949
50- let analyze = new vscode . TreeItem ( "Analyze" , vscode . TreeItemCollapsibleState . None ) ;
51- analyze . iconPath = new vscode . ThemeIcon ( "search-fuzzy" ) ;
52- analyze . label = "Analyze" ;
53- analyze . command = {
54- command : "extension.showAnalyze" ,
55- title : "show Analyze page" ,
56- arguments : [ ] ,
57- } ;
58-
59- return [ analyze , createProject , rtSetting , about , ] ;
50+ return [ createProject , rtSetting , about ] ;
6051 }
6152
6253 if ( ! element ) {
6354 let children = [ ] ;
6455
6556 // 添加创建工程项
66- let createProject = new vscode . TreeItem ( "create project " , vscode . TreeItemCollapsibleState . None ) ;
57+ let createProject = new vscode . TreeItem ( "Create Project " , vscode . TreeItemCollapsibleState . None ) ;
6758 createProject . iconPath = new vscode . ThemeIcon ( "new-folder" ) ;
68- createProject . label = "create project " ;
59+ createProject . label = "Create Project " ;
6960 createProject . command = {
7061 command : "extension.showCreateProject" ,
7162 title : "show create project page" ,
7263 arguments : [ ] ,
7364 } ;
7465 children . push ( createProject ) ;
7566
76- let rtSetting = new vscode . TreeItem ( "rt-thread setting " , vscode . TreeItemCollapsibleState . None ) ;
67+ let rtSetting = new vscode . TreeItem ( "RT-Thread Setting " , vscode . TreeItemCollapsibleState . None ) ;
7768 rtSetting . iconPath = new vscode . ThemeIcon ( "settings-gear" ) ;
78- rtSetting . label = "rt-thread setting " ;
69+ rtSetting . label = "RT-Thread Setting " ;
7970 rtSetting . command = {
8071 command : "extension.showSetting" ,
8172 title : "show rt-thread setting page" ,
@@ -91,6 +82,16 @@ class CmdTreeDataProvider implements vscode.TreeDataProvider<vscode.TreeItem> {
9182 children . push ( item ) ;
9283 } ;
9384
85+ let analyze = new vscode . TreeItem ( "Symbolic Analysis" , vscode . TreeItemCollapsibleState . None ) ;
86+ analyze . iconPath = new vscode . ThemeIcon ( "search-fuzzy" ) ;
87+ analyze . label = "Symbolic Analysis" ;
88+ analyze . command = {
89+ command : "extension.showAnalyze" ,
90+ title : "show symbolic analysis page" ,
91+ arguments : [ ] ,
92+ } ;
93+ children . push ( analyze ) ;
94+
9495 let about = new vscode . TreeItem ( "About" , vscode . TreeItemCollapsibleState . None ) ;
9596 about . iconPath = new vscode . ThemeIcon ( "info" ) ;
9697 about . label = "About" ;
@@ -101,15 +102,6 @@ class CmdTreeDataProvider implements vscode.TreeDataProvider<vscode.TreeItem> {
101102 } ;
102103 children . push ( about ) ;
103104
104- let analyze = new vscode . TreeItem ( "Analyze" , vscode . TreeItemCollapsibleState . None ) ;
105- analyze . iconPath = new vscode . ThemeIcon ( "info" ) ;
106- analyze . label = "Analyze" ;
107- analyze . command = {
108- command : "extension.showAnalyze" ,
109- title : "show analyze page" ,
110- arguments : [ ] ,
111- } ;
112- children . push ( analyze ) ;
113105
114106 return children ;
115107 } else {
0 commit comments