forked frommicrosoft/vscode-cpptools
- Notifications
You must be signed in to change notification settings - Fork0
Commit83be111
authored
Add updateChannel setting (microsoft#2465)
* Read json from harded-coded file location* Expose settings tracker* Get linux download url* Remove unused imports* Correctly get changed setting* Add update timer* Minimum end to end* Refactoring; Commenting; Renaming* Commenting* Add optional param to download fn; Refactoring; Renaming* Commenting; Then parse fn* Mark vars const; Add todos; Refactoring* Commenting; Refactoring* url from any to string; Index into parsed json as separate step* Use temp files to prevent clutter* Correct windows platform name check; Replace quotes* Resolve vsixName for mac + win* Factor version comparisons into ParsedVersion class while correcting version comparison* Use which utility to find code script* Update timer to once per hour* Move downloadFileToDestination to common; Replace downloadCpptoolsJsonAsync* Return changed settings on onDidChangeSettings* Get changed settings without stealing them* Remove tracker from client interface* Add basic isReleaseJson fn; Add telemetry; Add catch functions* Write type predicates for release json* Refactoring; Rewrite version check; Rewrite build selection* Factor target build search into helper fn* Reorder fn defs* Uninstall version before installing if downgrading* Add undefined checks; Update version comparison* Reorder fn* Telemetry rename; Parse versions more safely* Turn ParsedVersion into interface; Rename release to build* Fix fn return types* Commenting* Remove unneeded validity check* Rename telemetry event; Correct fn return type* Update setting description* Remove promise rejection* Remove unwanted changes* Rename var* Remove imports; Move call to updateSettingsAsync to .then in abTesting* Remove import; Remove unneeded uses of await* Remove comment* Reformat else ifs* Remove '| undefined' instances* Use find fn more idiomatically* Add type specification for predicates + rename them* Add url var to shorten call to downloadFileToDestination* Move parsedVersion to separate file* Move parsedVersion into PackageVersion class* Move helper fn's to separate file* Get script name for both insiders and release VSCode (untested)* Move packageVersion + ghAPI from LanguageServe to src* Update imports to reflect mv; Check isValid on PackageVersion* Add todo's* Correctly get download URL; Correctly verify releaseJson by only checking recent 5 builds* Check version numbers against undefined instead of 0* Await install command before removing install file; Change var name* Re-merge package.json* Rename ghAPI.ts to githubAPI.ts* Rename vars; Remove TODO* Modify version comparison (untested)* Remove todo* Create file async* Download and install file async* Rework promises* Make functions async where possible* Commenting* Grandfather in insiders users* Change syntax via await keyword* Re-enable interval timer* Add updateChannel settings get* Immediately check for update on extension activation if on insiders* Surround windows code script path in quotes* Rename versionStr to version* Change telemetry event* Update telemetry/exception handling* Update telemetry strings; Reformat is functions* Another pass at promises + telemetry* Commenting* Remove undefined from fn return* Fix headers not being forwarded to recursive call* Another pass at promises* Correctly return promise in checkAndApplyUpdate* Remove debug vars* Rename fns* Fix version parsing* Tidy version comparison* Remove commented out code* Variable rename; Add newline at EOF* Add newline at EOF* Commenting; Unbind functions and use function syntax for .thens* Error message; add rejection* Correct exceptions being handled one promise too late* PR feedback* Rewrite promise chain to await to allow premature cancellation of promise chain* Mark vars const; Comment; Rename var1 parent2f931d9 commit83be111
File tree
9 files changed
+422
-47
lines changed- Extension
- src
- LanguageServer
9 files changed
+422
-47
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
456 | 456 | | |
457 | 457 | | |
458 | 458 | | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
459 | 469 | | |
460 | 470 | | |
461 | 471 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
| 168 | + | |
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
| |||
413 | 413 | | |
414 | 414 | | |
415 | 415 | | |
416 | | - | |
417 | | - | |
| 416 | + | |
| 417 | + | |
418 | 418 | | |
419 | 419 | | |
420 | 420 | | |
| |||
427 | 427 | | |
428 | 428 | | |
429 | 429 | | |
| 430 | + | |
| 431 | + | |
430 | 432 | | |
431 | 433 | | |
432 | 434 | | |
| |||
1266 | 1268 | | |
1267 | 1269 | | |
1268 | 1270 | | |
1269 | | - | |
| 1271 | + | |
1270 | 1272 | | |
1271 | 1273 | | |
1272 | 1274 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
21 | 25 | | |
22 | 26 | | |
23 | 27 | | |
| |||
26 | 30 | | |
27 | 31 | | |
28 | 32 | | |
| 33 | + | |
29 | 34 | | |
30 | 35 | | |
31 | 36 | | |
| 37 | + | |
32 | 38 | | |
33 | 39 | | |
34 | 40 | | |
| |||
126 | 132 | | |
127 | 133 | | |
128 | 134 | | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
129 | 141 | | |
130 | 142 | | |
131 | 143 | | |
| |||
142 | 154 | | |
143 | 155 | | |
144 | 156 | | |
| 157 | + | |
145 | 158 | | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
146 | 170 | | |
147 | 171 | | |
148 | 172 | | |
| |||
200 | 224 | | |
201 | 225 | | |
202 | 226 | | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
203 | 299 | | |
204 | 300 | | |
205 | 301 | | |
| |||
516 | 612 | | |
517 | 613 | | |
518 | 614 | | |
| 615 | + | |
519 | 616 | | |
520 | 617 | | |
521 | 618 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | 7 | | |
14 | 8 | | |
15 | 9 | | |
| |||
61 | 55 | | |
62 | 56 | | |
63 | 57 | | |
64 | | - | |
| 58 | + | |
65 | 59 | | |
66 | 60 | | |
67 | 61 | | |
| |||
83 | 77 | | |
84 | 78 | | |
85 | 79 | | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | 80 | | |
122 | 81 | | |
123 | 82 | | |
124 | | - | |
| 83 | + | |
| 84 | + | |
125 | 85 | | |
126 | 86 | | |
127 | 87 | | |
128 | 88 | | |
129 | 89 | | |
| 90 | + | |
130 | 91 | | |
131 | 92 | | |
132 | 93 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
| |||
577 | 579 | | |
578 | 580 | | |
579 | 581 | | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
0 commit comments
Comments
(0)