|
92 | 92 | }, |
93 | 93 | "views": { |
94 | 94 | "deepcode": [ |
| 95 | + { |
| 96 | + "id": "deepcode.views.error", |
| 97 | + "name": "DeepCode Extension", |
| 98 | + "when": "deepcode:error" |
| 99 | + }, |
95 | 100 | { |
96 | 101 | "id": "deepcode.views.welcome", |
97 | 102 | "name": "DeepCode Extension", |
98 | | - "when": "!deepcode:loggedIn" |
| 103 | + "when": "!deepcode:error && !deepcode:loggedIn" |
| 104 | + }, |
| 105 | + { |
| 106 | + "id": "deepcode.views.tc", |
| 107 | + "name": "DeepCode Extension", |
| 108 | + "when": "!deepcode:error && deepcode:loggedIn && !deepcode:uploadApproved" |
99 | 109 | }, |
100 | 110 | { |
101 | 111 | "id": "deepcode.views.progress", |
102 | 112 | "name": "DeepCode Analysis", |
103 | | - "when": "deepcode:loggedIn && deepcode:analyzing" |
| 113 | + "when": "!deepcode:error && deepcode:loggedIn && deepcode:uploadApproved && !deepcode:analysisCompleted" |
104 | 114 | }, |
105 | 115 | { |
106 | 116 | "id": "deepcode.views.analysis", |
107 | 117 | "name": "DeepCode Analysis", |
108 | | - "when": "deepcode:loggedIn && deepcode:completed" |
| 118 | + "when": "!deepcode:error && deepcode:loggedIn && deepcode:uploadApproved && deepcode:analysisCompleted" |
109 | 119 | }, |
110 | 120 | { |
111 | 121 | "id": "deepcode.views.support", |
|
114 | 124 | ] |
115 | 125 | }, |
116 | 126 | "viewsWelcome": [ |
| 127 | + { |
| 128 | + "view": "deepcode.views.error", |
| 129 | + "contents": "DeepCode is temporarily unavailable, we are automatically retrying to connect...", |
| 130 | + "when": "deepcode:error == 'transient'" |
| 131 | + }, |
| 132 | + { |
| 133 | + "view": "deepcode.views.error", |
| 134 | + "contents": "DeepCode has encountered a problem. Please restart the extension: \n[Restart](command:deepcode.start 'Restart DeepCode')\nIf the error persists, please check your [settings](command:deepcode.settings) and [contact us](https://www.deepcode.ai/feedback?select=2)!", |
| 135 | + "when": "deepcode:error != 'transient'" |
| 136 | + }, |
117 | 137 | { |
118 | 138 | "view": "deepcode.views.welcome", |
119 | 139 | "contents": "Welcome to DeepCode for Visual Studio Code. 👋\nLet's start by connecting VS Code with DeepCode:\n[Connect VS Code with DeepCode](command:deepcode.login 'Connect with DeepCode')\n🚀 DeepCode's mission is to find bugs in your Javascript, TypeScript, Python, Java and C/C++ code, fast!\n💬 A VS Code user (Lucas) recently said:\"I'm really crazy about this super simple service that feels like it's from 5 years in the future\".\n👉 Connect with DeepCode and start your first analysis!" |
120 | 140 | }, |
| 141 | + { |
| 142 | + "view": "deepcode.views.tc", |
| 143 | + "contents": "Thanks for connecting with DeepCode. ✅\n 👉 You are almost set 🤗, let's confirm and start the remote analysis - feel free to check out our [terms and conditions](https://www.deepcode.ai/tc?utm_source=vsc) if you are into this.\n[Accept code upload](command:deepcode.approveUpload 'Upload code to DeepCode')\nYou can always change it later in the [settings](command:deepcode.settings)!" |
| 144 | + }, |
121 | 145 | { |
122 | 146 | "view": "deepcode.views.progress", |
123 | | - "contents": "IN PROGRESS" |
| 147 | + "contents": "Analysis in progress" |
124 | 148 | }, |
125 | 149 | { |
126 | 150 | "view": "deepcode.views.analysis", |
127 | | - "contents": "ANALYZED" |
| 151 | + "contents": "DeepCode analyzed your code and found no issue!" |
128 | 152 | } |
129 | 153 | ], |
130 | 154 | "menus": { |
|
133 | 157 | "command": "deepcode.start", |
134 | 158 | "when": "deepcode:loggedIn" |
135 | 159 | } |
| 160 | + ], |
| 161 | + "view/title": [ |
| 162 | + { |
| 163 | + "command": "deepcode.settings", |
| 164 | + "when": "view == deepcode.views.support", |
| 165 | + "group": "navigation" |
| 166 | + }, |
| 167 | + { |
| 168 | + "command": "deepcode.start", |
| 169 | + "when": "view == deepcode.views.analysis", |
| 170 | + "group": "navigation" |
| 171 | + } |
136 | 172 | ] |
137 | 173 | }, |
138 | 174 | "commands": [ |
139 | 175 | { |
140 | 176 | "command": "deepcode.start", |
141 | | - "title": "DeepCode re-scan" |
| 177 | + "title": "DeepCode re-scan", |
| 178 | + "icon": "images/icon-sidebar.svg" |
142 | 179 | }, |
143 | 180 | { |
144 | 181 | "command": "deepcode.settings", |
145 | | - "title": "DeepCode settings" |
| 182 | + "title": "DeepCode settings", |
| 183 | + "icon": "images/icon-sidebar.svg" |
146 | 184 | }, |
147 | 185 | { |
148 | 186 | "command": "deepcode.login", |
149 | 187 | "title": "DeepCode login" |
| 188 | + }, |
| 189 | + { |
| 190 | + "command": "deepcode.approve", |
| 191 | + "title": "DeepCode approve upload and remote analysis" |
150 | 192 | } |
151 | 193 | ] |
152 | 194 | }, |
|
0 commit comments