Compare commits
1570 Commits
updates-testing
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| b3166e7ef2 | |||
| 17e7a5b152 | |||
| f100db9175 | |||
| 1ee8980fe1 | |||
| 74650cb867 | |||
| 5aaa1604e1 | |||
| ff717cad16 | |||
| 7a974f2dff | |||
| cbb52dec28 | |||
| d948fc5950 | |||
| ee39ee94b1 | |||
| a7eb54a09b | |||
| 34e3413dca | |||
| 607a61c068 | |||
| 9732f74ba7 | |||
| 9031215001 | |||
| 3fa95be625 | |||
| 1183cd3ad4 | |||
| ac1aba825f | |||
| 867df38364 | |||
| c90f707070 | |||
| 0424e7d0d3 | |||
| 42c50413f5 | |||
| b5ae6d7a96 | |||
| 453f392f01 | |||
| b5a41840a0 | |||
| f0ad8e2e2e | |||
| d732d6ba05 | |||
| 24add9286c | |||
| 67e89fd979 | |||
| 5a702f98bc | |||
| 8b3b118319 | |||
| c3125804f3 | |||
| b739e99a1e | |||
| ec3b7caa8e | |||
| ffdbb214f9 | |||
| ec5b7636be | |||
| d1adb8b0fc | |||
| a475c80f4f | |||
| 8233c59f2b | |||
| 7c2192a7dc | |||
| 6aa2409302 | |||
| b48c3aaf35 | |||
| 722d0c5b3b | |||
| 7727b19b3c | |||
| 0816694210 | |||
| c6d210902b | |||
| b00d77610d | |||
| ad8fedc307 | |||
| 940155ac80 | |||
| ffbfba8d4f | |||
| da425ab0fe | |||
| 1191abf745 | |||
| 1a922133da | |||
| 40a27cd1ee | |||
| bf062146c9 | |||
| 97cb63c7fc | |||
| 2f283b503a | |||
| 7b78f962d3 | |||
| 93ee1731b5 | |||
| f5680a5c62 | |||
| 88288dba46 | |||
| 5b7580c3da | |||
| 9bf0646abe | |||
| 1737c7bfc8 | |||
| 584dc18ede | |||
| 3ec6973a0f | |||
| 42ef028c1e | |||
| 7b14f0ca73 | |||
| 9a5580d32e | |||
| c41838afc6 | |||
| f32743d759 | |||
| 9e53dfef33 | |||
| 844784445c | |||
| 9920bd3366 | |||
| 483cfb29a0 | |||
| 282800e394 | |||
| aacae4728f | |||
| 77c9284df5 | |||
| 7eac4aad6f | |||
| 797c8e7096 | |||
| 406d0dc297 | |||
| e34e38cb3a | |||
| 95f2aa70a1 | |||
| b74772e6e2 | |||
| 374e6c7109 | |||
| 8e6bb7194d | |||
| 2b4283a0f0 | |||
| b0617700aa | |||
| 53f7aa47f6 | |||
| e324257e1a | |||
| 7feb9154da | |||
| 857eda72fd | |||
| 3bc0a34e83 | |||
| 9c642763f0 | |||
| 17e44e192d | |||
| a24d097264 | |||
| 2880549d3f | |||
| 22fa093928 | |||
| 31950ae01e | |||
| 12a1014534 | |||
| 5815c0180a | |||
| 822430535e | |||
| 020fb60d74 | |||
| 615f8c3315 | |||
| 980d7937c3 | |||
| 57d94d2d44 | |||
| 382ecaae1b | |||
| a9abdf6351 | |||
| 27c40d8428 | |||
| c067d9fbf0 | |||
| 83c4a05642 | |||
| 182af95035 | |||
| 0a6be740e1 | |||
| 8d0cdb8d36 | |||
| 29f004a826 | |||
| ac6b5601ef | |||
| cfb15e1117 | |||
| bd13208513 | |||
| 8350fbd2d1 | |||
| 22e08e6a06 | |||
| b50079709d | |||
| e2863d3002 | |||
| c12e9ca9f8 | |||
| e138744816 | |||
| df21a99ed9 | |||
| 98e07e1c7f | |||
| 77e562e278 | |||
| 232264d5fe | |||
| 70d484049c | |||
| f4557ef6a8 | |||
| 3038b420c9 | |||
| 0625ce4b40 | |||
| 06d20d705e | |||
| f034be08c3 | |||
| f74b94e3ba | |||
| d09601191d | |||
| 189e207499 | |||
| f88dba7610 | |||
| 44f56b3ab4 | |||
| 5e100fcf1d | |||
| 9e745e2b87 | |||
| 3a39551205 | |||
| 033a23aa28 | |||
| 38f06202ed | |||
| 327d2dfe06 | |||
| 826571b410 | |||
| c185807e60 | |||
| 31cde552a0 | |||
| 23bb28f3c0 | |||
| 5a34feb328 | |||
| f0f536bc2d | |||
| 09f5f1fad1 | |||
| 31aa31a18b | |||
| b56cc0d662 | |||
| 4f4af9b8b9 | |||
| 66de84f4e3 | |||
| 0a02342128 | |||
| f99589aaa6 | |||
| da6ffecc1d | |||
| 43b6dba7a3 | |||
| 5747904b85 | |||
| 4358b9e384 | |||
| 5a5732601e | |||
| 83ec200039 | |||
| 81ab21868a | |||
| 627ec18cc9 | |||
| 883a4663c9 | |||
| d2d47175b5 | |||
| 7aacbca580 | |||
| f5b0f24445 | |||
| 89ac548ae9 | |||
| 57bc32ac9b | |||
| 446248aa79 | |||
| 66575b5381 | |||
| 8b99b6ec78 | |||
| 18d1f2e6b9 | |||
| 72143608a1 | |||
| ec2ea70395 | |||
| 55691624dd | |||
| 9072668be3 | |||
| 7a4cf6c955 | |||
| 588953be96 | |||
| 5bdbbc84aa | |||
| ebae55cd4b | |||
| 2b9e2088b3 | |||
| cbc7cf0841 | |||
| d141bffae9 | |||
| 3619a3e671 | |||
| 13654389c6 | |||
| 4d8363026e | |||
| d80fd766f8 | |||
| 6d9027f63b | |||
| 03ab6559fc | |||
| 35f23261b0 | |||
| 9b4c0b8d5a | |||
| 07df20b4de | |||
| 5995591296 | |||
| 6646bd0993 | |||
| f1c9e29f61 | |||
| 2b97326eff | |||
| b70ee20b88 | |||
| ae0068ecb3 | |||
| 091bbf4dd3 | |||
| 7642b3281a | |||
| 05e27a0885 | |||
| 1d15d29a19 | |||
| 807086f7b6 | |||
| 2d910835b7 | |||
| b68d8fd8e8 | |||
| 59dd7d7eea | |||
| 079ce49d17 | |||
| 7f4470674d | |||
| b1b7afe8a0 | |||
| d3757e81b4 | |||
| 065470afc1 | |||
| db771c4f33 | |||
| 3c96193b71 | |||
| c669a987c5 | |||
| 543c6f0550 | |||
| 8afaec30da | |||
| a0f9309e02 | |||
| 243349a90f | |||
| 04a821b382 | |||
| 906502f660 | |||
| 2817cdd8a6 | |||
| a8bc42b524 | |||
| 05e1e61f08 | |||
| 30655678fe | |||
| ca51bcaecc | |||
| a629736683 | |||
| 0074189191 | |||
| 4a862641cd | |||
| b18ac4b6c0 | |||
| d7201a38dc | |||
| 9112c0c94d | |||
| 716cb8d591 | |||
| aed9f31185 | |||
| 2377c18241 | |||
| 7b9e5ce517 | |||
| c119286571 | |||
| 5cab7e61e5 | |||
| c405a462a8 | |||
| e481327327 | |||
| b7bb7f2f94 | |||
| 2ae288e2ed | |||
| 316709671f | |||
| 9fac1e27a9 | |||
| f632327a7e | |||
| e95922802f | |||
| 3954056a41 | |||
| 1c7acdac94 | |||
| 33163b7e81 | |||
| d9d3147b2a | |||
| 4b9e2c2319 | |||
| 19bd649451 | |||
| 7fd06b946b | |||
| 8c760980b6 | |||
| 96000273cf | |||
| e771edbe2e | |||
| aafe556333 | |||
| 9502f563f4 | |||
| 78c6baed82 | |||
| bafbdd9df3 | |||
| 4cca689c94 | |||
| 63083cec89 | |||
| 661908237b | |||
| b35dfdf475 | |||
| 2187641cc3 | |||
| 609f4c9cbf | |||
| 6df3b588df | |||
| 01329382b9 | |||
| 7af9973a8d | |||
| 1ed79ef985 | |||
| 8a12505ffd | |||
| f82c15401a | |||
| b4dff124e0 | |||
| 1aeb62d075 | |||
| 4b86bfa184 | |||
| f4c1321f25 | |||
| b54dd7fedc | |||
| 7c448f15db | |||
| 3241178238 | |||
| 68bb3f6962 | |||
| 2e64f5a24b | |||
| 2e5ecb291d | |||
| f1e24c9b4c | |||
| f65e4f51a2 | |||
| f1a5d20150 | |||
| 28dcdff189 | |||
| 67ed52415e | |||
| 3772cf98ea | |||
| 1c6edf7023 | |||
| 6b6528c3fb | |||
| f98894ad77 | |||
| f8745d8b40 | |||
| 7066b4285b | |||
| 1eee07e697 | |||
| 45f7e4b157 | |||
| 1619a3c19b | |||
| d668348244 | |||
| 3fa680e8ba | |||
| e8b7c9c470 | |||
| a0eb7d6192 | |||
| 5c4785d691 | |||
| 1de90cc39d | |||
| 20dba6f04e | |||
| 8e0d29ff75 | |||
| 117feaa063 | |||
| d09a41acd3 | |||
| 24102fc2b2 | |||
| c2b65eb16f | |||
| a4046bc5a5 | |||
| 6f73804e94 | |||
| 4300df420c | |||
| 76155beaad | |||
| 53c68b1267 | |||
| afbc1b40bf | |||
| 74d5c86593 | |||
| 9a905f6cb2 | |||
| dd42e40a8d | |||
| 970fd7ecbb | |||
| 50710143eb | |||
| d6295e5d65 | |||
| 053a022ef8 | |||
| 3b963d8717 | |||
| e8540e4668 | |||
| 39f2f24b42 | |||
| e852874be7 | |||
| 6d07f9db14 | |||
| 2934f9a3c5 | |||
| 7748dc4f2d | |||
| 8b45aea8a8 | |||
| cab8dd64b6 | |||
| 19782c80df | |||
| 926db45f0a | |||
| 4068911d49 | |||
| dcee2e2657 | |||
| 4c1c0b591a | |||
| 61fc593903 | |||
| ecff59eed7 | |||
| e2a7b0e1a0 | |||
| 07c3f33f1e | |||
| 0f93e1b055 | |||
| 2106573922 | |||
| 93a13a76af | |||
| 7b18e25288 | |||
| 57b0505a7e | |||
| e7436575a5 | |||
| 58d95035ff | |||
| 96436ac461 | |||
| 85b1f0ec04 | |||
| 5232b4c30c | |||
| 81fd74d0b0 | |||
| 93b727198e | |||
| f33cf14b07 | |||
| 15cf383524 | |||
| f7489375b0 | |||
| 08274637e1 | |||
| 168b92f6c4 | |||
| a9aa9a26ea | |||
| eeb6167c12 | |||
| c2092779e7 | |||
| 19dc26d35b | |||
| b1c17256c2 | |||
| 1992a86211 | |||
| 70fe79c4fe | |||
| a1bf83b5a6 | |||
| 215efed10c | |||
| 6ada92e6f5 | |||
| ae55e97c18 | |||
| 07c9a72c83 | |||
| e577d4a01b | |||
| 56c2f7a900 | |||
| 558bec1f61 | |||
| 12e97f5689 | |||
| 7220323098 | |||
| 94229ff1d8 | |||
| 3b778a3c36 | |||
| f6529f2d76 | |||
| 1b222e8335 | |||
| 3b518e6f96 | |||
| ac23cbb523 | |||
| 301418bd12 | |||
| d192bdcdc0 | |||
| 42f2958959 | |||
| 7a3cf4953d | |||
| 84ddf2b88c | |||
| d00c478c5b | |||
| 42391a33c8 | |||
| 4618442c11 | |||
| 77d174edcf | |||
| 79d549b45b | |||
| 8ba5ee5ea3 | |||
| 1d40c14d50 | |||
| cc51d2852e | |||
| 8855cdeb04 | |||
| 559994f1ee | |||
| 05e3625014 | |||
| d9951e4108 | |||
| 620b5b7341 | |||
| d33b5ff9a3 | |||
| 2208bce55f | |||
| bd62b68dfb | |||
| af3e0e863b | |||
| 57f4d8cd38 | |||
| 262f3aee12 | |||
| b03cbadb9b | |||
| 390afaf227 | |||
| 41f6ce8f9b | |||
| cbc3d4b52f | |||
| 38eeee8e30 | |||
| 84f95170cb | |||
| 2de4cacf0f | |||
| 097d89366c | |||
| fa83dfc529 | |||
| c5862188cb | |||
| 8816c7194d | |||
| 4b40ac1b47 | |||
| 02115f5b6c | |||
| 786f5707e3 | |||
| 71d703852b | |||
| ae179b8111 | |||
| 170ccb9298 | |||
| a5b43ce146 | |||
| e0156803ff | |||
| fcd445d875 | |||
| decd0c9bc4 | |||
| e1da2a5231 | |||
| 4570068fa9 | |||
| afacd32407 | |||
| fa782243c9 | |||
| 19390808bc | |||
| f77258799f | |||
| f97cdd82d8 | |||
| 9216a0e91f | |||
| aa03c34db6 | |||
| d125d8698b | |||
| f56ccad713 | |||
| 4c511f0c32 | |||
| ca3acb0d30 | |||
| 38e6ee94d8 | |||
| 1c9e684350 | |||
| b6e3a57dc6 | |||
| 7dc86502e3 | |||
| e70915afc3 | |||
| fab84d7371 | |||
| d38b744dd2 | |||
| b520523c4c | |||
| b73c11429c | |||
| 7846b117bd | |||
| 398a8a1934 | |||
| 732269de87 | |||
| 4dae90e047 | |||
| 25c12b101f | |||
| 09d7e7f3e6 | |||
| c088ad3c07 | |||
| 9bebbb5615 | |||
| e726c3c5de | |||
| d826052444 | |||
| d841468f3b | |||
| 4d04141139 | |||
| 5090e31a89 | |||
| 4fb0d7d727 | |||
| 5f12c7a1cf | |||
| 1af393983b | |||
| d3d62652db | |||
| 5cd1fa15cf | |||
| 14a276e4a0 | |||
| cf0728f4c6 | |||
| 6a119e1246 | |||
| 8723107f1d | |||
| b1ca03611e | |||
| 32f41f97d9 | |||
| 3580eb01d0 | |||
| cb549ddd9a | |||
| f0f7c57485 | |||
| ace3bfdfb6 | |||
| 90c1beecca | |||
| 4ad286a030 | |||
| c5bf5e453e | |||
| a89934d7ad | |||
| e424a2cdbd | |||
| d9f2fcd700 | |||
| 1ed82ba174 | |||
| 80a5dc0362 | |||
| f166fa3581 | |||
| cec0df989c | |||
| ceba02ed47 | |||
| 1b9fe5b16d | |||
| 8d8fcba833 | |||
| e02d1e6847 | |||
| b68f34e644 | |||
| f13279e84a | |||
| 9b861db77f | |||
| a8ba44e49e | |||
| 1632bb5169 | |||
| 125968feb1 | |||
| d2310973ec | |||
| 722da01c7c | |||
| 244cffe873 | |||
| d5e76813ce | |||
| a663a258f7 | |||
| 51b66338b5 | |||
| b91b2b9276 | |||
| 1081878c31 | |||
| 477dedeb38 | |||
| df721c5370 | |||
| e493e65cff | |||
| c16a45c647 | |||
| 9871d4f413 | |||
| e94c0fb1c0 | |||
| 44398eb96b | |||
| 413be993d8 | |||
| 106b30dfbd | |||
| 58804620f7 | |||
| 02b03003c0 | |||
| 46d318b0ce | |||
| f9d8e92621 | |||
| 806b3b90b5 | |||
| 25f1fb4d19 | |||
| dfe00e7a18 | |||
| 2bd5708915 | |||
| c666a5f721 | |||
| d31c0730ed | |||
| a5a8559a20 | |||
| 6b4142e9b1 | |||
| 7605931abe | |||
| a12d4fa9a7 | |||
| ace109b0df | |||
| e2464e16c6 | |||
| 6a7590ed03 | |||
| 5134ebc761 | |||
| 039d5cb812 | |||
| 0bb948ee2d | |||
| 8a17e9b4e5 | |||
| 5173ef70c8 | |||
| 879c18f6f3 | |||
| e1516de6ac | |||
| 991e6a9d5f | |||
| fec283a0f1 | |||
| 1e5f9808b4 | |||
| 735b403820 | |||
| 71fc2895a8 | |||
| 1a45baa23e | |||
| d1db394693 | |||
| 94c3d38dc9 | |||
| f1a79f8508 | |||
| 8f09a94c78 | |||
| 3de9faed5c | |||
| c179912368 | |||
| 19313c7e5d | |||
| c689dcad12 | |||
| c52a754076 | |||
| d67cfb5b33 | |||
| 7df49a769a | |||
| e3a59057a5 | |||
| 89c2adee70 | |||
| c4b9637546 | |||
| 868736330a | |||
| 2c856c9932 | |||
| a3b49d8aa2 | |||
| da9817bd99 | |||
| 58b4d90b49 | |||
| 39ea63b207 | |||
| b02b2f0c89 | |||
| 902d419026 | |||
| b244f2f08b | |||
| 4d9b52ede6 | |||
| e94d2de641 | |||
| 5fdc5d6df2 | |||
| cf5ff98081 | |||
| 45eeb14b54 | |||
| dcfb5d443c | |||
| f839e73ebc | |||
| c775d34d75 | |||
| 3023ed87d2 | |||
| 3a5a04ceae | |||
| 22475f7206 | |||
| 68333ce349 | |||
| 9f3dbc3eb4 | |||
| 10949b44d1 | |||
| 45778d5735 | |||
| 816d6090cc | |||
| 355d8d9a5a | |||
| b47e8f2237 | |||
| 0543b2c893 | |||
| 69cf58af5a | |||
| f9b3dbe316 | |||
| 176b988539 | |||
| 11cc9f8b4e | |||
| ab396d4c1d | |||
| a01ca97b18 | |||
| 1b4105ed2b | |||
| 4024ed40c2 | |||
| 8c53878681 | |||
| 7bd52438f5 | |||
| 6f2d513d3f | |||
| 800aeea247 | |||
| 021acf541a | |||
| 7a739e567c | |||
| ef52ebfdc2 | |||
| e83a172816 | |||
| c3ef7e616f | |||
| f77907fe0d | |||
| 6d28b0627f | |||
| 7d3ce48f5f | |||
| 97c611f4f2 | |||
| 90d94ecd3c | |||
| 9f7154ddab | |||
| 5cdb4b0c47 | |||
| a61fdd0419 | |||
| b7db527866 | |||
| c921059690 | |||
| cee6dcc524 | |||
| b9e097bfc0 | |||
| 87c6669020 | |||
| 80448c4471 | |||
| b4f9c1fa97 | |||
| 10052819ce | |||
| 0f2ebecbd3 | |||
| eb68e1d294 | |||
| 17aa9eea97 | |||
| 5e85d804f8 | |||
| 8f2a2d642f | |||
| 6141351e15 | |||
| 00e196a55f | |||
| a146b8ba0d | |||
| 16913e96e5 | |||
| 6f55e6900b | |||
| 36e10dcc08 | |||
| ce8c790e5c | |||
| 738067951a | |||
| 8b1a42499b | |||
| 7fd52b4805 | |||
| 5f30506f46 | |||
| 48efc32dd3 | |||
| 5fffd2fe0f | |||
| 664428c8f0 | |||
| aa8b999da0 | |||
| d99d2cca4a | |||
| e7da1d27bd | |||
| 56c50dc218 | |||
| e0e7b360fe | |||
| 434a8289d9 | |||
| 7e0e65d3b7 | |||
| 4cb96cb60e | |||
| 4a7ea3ec43 | |||
| bd53772523 | |||
| f09f538b05 | |||
| ff2ed836c7 | |||
| 6db29526ec | |||
| 27d9cc2916 | |||
| dbbaa61961 | |||
| 05bd1790a7 | |||
| 4b30990e92 | |||
| 3a0eedc9fa | |||
| 64d4e264bf | |||
| afc5cf512b | |||
| 35e8cf59ff | |||
| fd4ecaff8a | |||
| 55c4f9e1cf | |||
| 78f9463da1 | |||
| 23f1e8c641 | |||
| 79eacad18b | |||
| 3e0e0bd4aa | |||
| fece3b2548 | |||
| 091855a89a | |||
| b3bd454bad | |||
| bd580946ce | |||
| 3bd6d08841 | |||
| 152cfd93aa | |||
| 7ea4e16f5f | |||
| 884548615b | |||
| b62943fffd | |||
| 9bd97d0cd5 | |||
| bf9852858e | |||
| 6058b7ff78 | |||
| 9b8f3ec2e2 | |||
| d3fd5be294 | |||
| aa4398c734 | |||
| 29d1a919be | |||
| feea5e13f3 | |||
| 119db73f69 | |||
| f59b24496e | |||
| a2ae9794ed | |||
| f335ce7204 | |||
| 0ddab03f8b | |||
| 5f8fddb01e | |||
| c81f628b7b | |||
| 9d1ab8728a | |||
| 7a0f9ac77c | |||
| a0fa104d23 | |||
| 7fd0b133e5 | |||
| 321876932a | |||
| eda8517c78 | |||
| 6ce37f7627 | |||
| 18b76885f5 | |||
| ba8644fbb6 | |||
| ee959ded08 | |||
| 499a47904e | |||
| 5ac03bb917 | |||
| 922f3ba2d7 | |||
| a189629341 | |||
| d2098f71eb | |||
| 77c59f2e80 | |||
| e6ecad3f65 | |||
| ee43ec99ea | |||
| e77039e9ad | |||
| 6aa1375067 | |||
| fe017948c6 | |||
| 9b3d4cbdba | |||
| a8cf0b361f | |||
| 680125baec | |||
| 0db4f7118d | |||
| 2ea20243a8 | |||
| 4d02381dab | |||
| 6990216fbe | |||
| f5d68d9348 | |||
| 165c5aac24 | |||
| 22f4a75c00 | |||
| 06513168c1 | |||
| a80883c10f | |||
| 20b0fd6af9 | |||
| 5171f7244f | |||
| 43708d25e7 | |||
| 2b54733242 | |||
| cd77d1a1c4 | |||
| 37af09add8 | |||
| ade1e70536 | |||
| 159e0b677f | |||
| 335ebe1e11 | |||
| 7be1ae5003 | |||
| 5d7f8fc91f | |||
| d6b3bdee35 | |||
| 8c1626f79b | |||
| 97ffe0b4cc | |||
| 9cf316f808 | |||
| aabacba2a9 | |||
| 39ccb1bbbd | |||
| 63560308b5 | |||
| 967aff2d19 | |||
| 50327a238e | |||
| 8eb5abe429 | |||
| 3c532478de | |||
| 5d5839736e | |||
| b8fd40e735 | |||
| a869ddb6f3 | |||
| e5a40e3d35 | |||
| 1081b8879f | |||
| 4efc5209ab | |||
| adcdeed094 | |||
| 86285e2393 | |||
| c1b6b2e01d | |||
| 2dcdd78316 | |||
| fa9a3db86f | |||
| 4445ff28ce | |||
| 9d6a4c4648 | |||
| e41f8790b5 | |||
| d363edb1a8 | |||
| 3cddc5d5cc | |||
| 2509290ab2 | |||
| aba49edfdd | |||
| 13b60f7ee3 | |||
| bd5cf464c2 | |||
| 44e7d10ece | |||
| 6bf79b27c0 | |||
| bb22aefb6a | |||
| 7002f320d6 | |||
| def8803919 | |||
| fdb21a68b8 | |||
| 455acc3490 | |||
| bc5b07b26f | |||
| 79ad57b112 | |||
| 9391dcb0b8 | |||
| b90716e38e | |||
| d8d21b0f25 | |||
| 3bf06bfe26 | |||
| 9166fa8684 | |||
| df2165403e | |||
| 44e0f0dfc7 | |||
| d6e496c396 | |||
| 7c94b95df4 | |||
| 85759eeb4a | |||
| 6230971dff | |||
| 8f08e40819 | |||
| ae635f0102 | |||
| cb8cc587f6 | |||
| 77f931c923 | |||
| 8dcb5d35df | |||
| 6483dcffa8 | |||
| ccaf6e2e3d | |||
| d5ae1a328c | |||
| 45c83ee661 | |||
| af7dbb4b70 | |||
| 72a6daaa58 | |||
| 898a5803dd | |||
| cffc6f6db9 | |||
| b2ba634cc4 | |||
| c62d6a6790 | |||
| f8bee1d4a2 | |||
| 41e66a73c4 | |||
| 5da0e4821f | |||
| 6aefdc3095 | |||
| 4055dc7775 | |||
| f48889627a | |||
| 3c59428fe8 | |||
| 8a8a982d21 | |||
| 7f890b946d | |||
| 1799ae9d84 | |||
| c7bdd2d64c | |||
| 5fde9194af | |||
| b6408512d3 | |||
| d5dc411e4c | |||
| e14fdd6678 | |||
| 8b5dfa66d5 | |||
| aef606dfb4 | |||
| 89b29ac97b | |||
| 908de32b8f | |||
| 4787400865 | |||
| 8b5e7dc25b | |||
| 7289f5f15a | |||
| 5e83d419ce | |||
| 3128000cf7 | |||
| b1626849ba | |||
| 99901d1e20 | |||
| 858faed92b | |||
| a4f94087df | |||
| 4236d920d9 | |||
| 56619c7b17 | |||
| ea65903b3f | |||
| 78671db5b8 | |||
| 7f38c1c9c3 | |||
| eefa9648c4 | |||
| 8c26fd2081 | |||
| 49fbb62259 | |||
| ad5a77dc55 | |||
| 2f078326c2 | |||
| 448be9a2cb | |||
| 0a1f675f45 | |||
| 052a50f9b0 | |||
| e331fb4eed | |||
| 4e197f4659 | |||
| 39bf2283cc | |||
| c87d1886cd | |||
| 6f693c4d0a | |||
| 1c5adb96d3 | |||
| 8f8fa8548d | |||
| bbe7575321 | |||
| dae5d054e7 | |||
| 0638cef79b | |||
| 8e2e8c58c9 | |||
| 4b4dde71b3 | |||
| d59b99a2a0 | |||
| df32898523 | |||
| 2bd8e61706 | |||
| 35724f36cd | |||
| 7fba51b59f | |||
| 599d80dcc3 | |||
| 3c186031be | |||
| 51c84df5a5 | |||
| 77c031abc5 | |||
| e81e71c81f | |||
| be07ecec2e | |||
| 3aa0bf11e6 | |||
| 329e68ccb1 | |||
| f3da41ba46 | |||
| 78384b3acf | |||
| 2912d5cd89 | |||
| c699577183 | |||
| 707fe9e0a3 | |||
| 71dd603c3d | |||
| 7aa5f1e4ec | |||
| 7c4e92a030 | |||
| 76125cc83e | |||
| 3fc0fd0bc0 | |||
| 5b0d8f4418 | |||
| d71f377ac1 | |||
| dbd63229c8 | |||
| 1e39cdaba4 | |||
| 5f76fa8d7d | |||
| f6358e319b | |||
| 5a52689d91 | |||
| 5187f0e96c | |||
| 086e471dd5 | |||
| 033de587f2 | |||
| bd0db41f67 | |||
| a5ac79c6a4 | |||
| 67a253164e | |||
| 3c93e0a414 | |||
| 1d9e0faaa3 | |||
| b440c8732f | |||
| 2aae01f3b6 | |||
| c1ffca04a7 | |||
| de703e82cb | |||
| a2a9cdba60 | |||
| 795ce62ce8 | |||
| bde51106a1 | |||
| 3ac9dcf0c0 | |||
| 2d9fe3b0be | |||
| 7e8af9c2ef | |||
| a94ce5d474 | |||
| eceaa6a59b | |||
| 103dd68b3c | |||
| 7decc8e146 | |||
| c58210ba80 | |||
| c68a497e77 | |||
| 03992c1206 | |||
| 7c0ba71314 | |||
| 878a439acd | |||
| f047ef9c55 | |||
| db6ebeb9f2 | |||
| 7631b41b27 | |||
| b2d8ca3023 | |||
| f11ff3475b | |||
| e74cc15d71 | |||
| 0294cb3b98 | |||
| 88dc32a43e | |||
| 42e1277bb9 | |||
| 2dcd95cf2a | |||
| 499abdf26c | |||
| 52e92ac3f9 | |||
| 885ebc8528 | |||
| 4f4ef694ff | |||
| 8cc68989dd | |||
| 57795b3210 | |||
| 68be4dcf57 | |||
| eb4d2a6c7b | |||
| 0c30c2681d | |||
| 36277eaed8 | |||
| ba4cac3fb6 | |||
| 3ce2911e3d | |||
| 89dc3c8805 | |||
| 1bbd6f59fe | |||
| bf6cb764ec | |||
| 7fdde7af3e | |||
| a2a265423f | |||
| 5f39e314b6 | |||
| b7e87b4af8 | |||
| b34b2f3d7b | |||
| 5b6bf42576 | |||
| a72ca7868e | |||
| a0f43c90c4 | |||
| 41b85052f0 | |||
| 4120031e0d | |||
| a499fa19fb | |||
| 6867dabf09 | |||
| 93875818f5 | |||
| d09223c362 | |||
| fb5ae96a44 | |||
| dbe62e82e1 | |||
| e5c72ac13e | |||
| dc143e7cb5 | |||
| 80443892f3 | |||
| 70e89c8f20 | |||
| 4f183f6772 | |||
| f61a7c91e4 | |||
| 610009eb1c | |||
| cd1b783917 | |||
| 57e8ef5463 | |||
| d5581b1bb4 | |||
| 1482ebba64 | |||
| 6d4253dff9 | |||
| cc4c863c82 | |||
| 4618e81d20 | |||
| 7fa971cbcd | |||
| 2267757c41 | |||
| e07727393b | |||
| 6a73930f4b | |||
| 6c382be737 | |||
| c43a234788 | |||
| 4e56321eb9 | |||
| 9e177c73ca | |||
| ccbe1911d2 | |||
| 015a7c10dc | |||
| f0c8eb55a6 | |||
| 24e5b78583 | |||
| ed89858fbc | |||
| a6d5a5f325 | |||
| e566db8396 | |||
| b52cf80bd5 | |||
| f1a31246b2 | |||
| e33b3ceae1 | |||
| c4e78cd3ba | |||
| fa1e74acf2 | |||
| 112a770f2c | |||
| b1bcac5a6d | |||
| ae79229c00 | |||
| 28ac708904 | |||
| 161b446bb2 | |||
| e0aee9863e | |||
| 072484dd5d | |||
| a86d3dc82b | |||
| b141b2edfe | |||
| cf9482bd76 | |||
| 4be2c3b6fd | |||
| 69a75f5c47 | |||
| 0ab4f8513b | |||
| 93f8597dd4 | |||
| 0f0e56a263 | |||
| 91a23bb2d3 | |||
| 19503d92b4 | |||
| e2648bba3e | |||
| 090eaba3aa | |||
| 1f98e75a4f | |||
| a38b4c8ee0 | |||
| 1def205b28 | |||
| 32bee63b50 | |||
| 4798bbdc86 | |||
| a854a341d3 | |||
| 1a4623589c | |||
| 51b19a6831 | |||
| b58ad5f876 | |||
| 4951116a6c | |||
| 46ca49e02b | |||
| 9133d6ecf5 | |||
| ad736edd9e | |||
| 1c7494861d | |||
| 31163e8516 | |||
| 853a26ae8e | |||
| 16c7aaf599 | |||
| d6df2514e1 | |||
| 2b33294a85 | |||
| 3ecdae6ab6 | |||
| fd1c840618 | |||
| 71f8315e06 | |||
| 633f7ffee5 | |||
| 35f53e66dd | |||
| 016d59e81a | |||
| 82851d519d | |||
| cfc18827bb | |||
| 04e8a204a3 | |||
| 4cc7f292b0 | |||
| 7c991b4dfc | |||
| 84d17737cf | |||
| 4c6b32633b | |||
| b933c5cf45 | |||
| 5b76b4a6a3 | |||
| 251d175517 | |||
| 69ce84c8df | |||
| f9e9771a87 | |||
| 18ff819ae9 | |||
| 98c09c653a | |||
| e1d4d85846 | |||
| e52e55a431 | |||
| 32d465dbe8 | |||
| 1f9bc92b66 | |||
| 9e5c82d6f8 | |||
| dd429208ce | |||
| 82278ab115 | |||
| 13cb8d4de7 | |||
| 2bc004f54d | |||
| e58b6041b4 | |||
| 6fd514230c | |||
| f75b4f34d8 | |||
| 6ecf7be826 | |||
| 47998e4ee5 | |||
| 995f39b61f | |||
| ec2ae0e190 | |||
| 2bef719754 | |||
| c6376eb1db | |||
| db2c60db82 | |||
| a6f1b1e0ad | |||
| 9edca589a0 | |||
| da6710a079 | |||
| f60d5cad2f | |||
| 75f1a2d79b | |||
| 22dd42ba70 | |||
| 1675879fa4 | |||
| 00734ce327 | |||
| d6a7921526 | |||
| 3e584d01a3 | |||
| 847b57c406 | |||
| d4e9dbb82a | |||
| f3451d5077 | |||
| 159d52a716 | |||
| f7d4eebf56 | |||
| 29f8fa6e1d | |||
| 8e735ec453 | |||
| 850bca80ab | |||
| 440dd809e3 | |||
| ffb416e4e8 | |||
| 0a17a9de19 | |||
| a0a7900381 | |||
| 5f77b9faae | |||
| 9dc7632d9b | |||
| e1d16b3de4 | |||
| 4301eb2bb1 | |||
| 4ad82cff07 | |||
| 22a16974f9 | |||
| cf9eca0564 | |||
| 3fc97c1a83 | |||
| 2eafda9132 | |||
| c889acadc0 | |||
| b3522ad73c | |||
| 96867326ae | |||
| 4946d3c2a0 | |||
| 6a6cb56d87 | |||
| eed71d9582 | |||
| 90a282a1f7 | |||
| 8511681710 | |||
| 4dff3e216a | |||
| e894be803b | |||
| 07e995fc2f | |||
| cffe053226 | |||
| dafc509fa1 | |||
| 794c4593e6 | |||
| 5d825ad970 | |||
| cc4115c8c4 | |||
| b86356d2af | |||
| 8dab3ac854 | |||
| 1326f19a5e | |||
| 69697542ba | |||
| a7728a6030 | |||
| 9ee14e6a71 | |||
| 2ae098ee96 | |||
| 0dae638be7 | |||
| dd321121e3 | |||
| 932b4974e9 | |||
| 20d89cd07c | |||
| f75dee39b3 | |||
| acd711f93b | |||
| 744d387fe1 | |||
| a3a8a7a842 | |||
| e28449b83d | |||
| 6ecc5cdbad | |||
| d64b6fba31 | |||
| d7ac86a6bd | |||
| 598f0d47f8 | |||
| 3b1ccdd2b1 | |||
| 054a8ad85a | |||
| ec505b653b | |||
| ad471a3015 | |||
| 86fddaa0e0 | |||
| b9405a76cd | |||
| 730758cbec | |||
| b26b62998d | |||
| 6856e23e2a | |||
| b305fc5034 | |||
| 9ab3ec3c11 | |||
| 5b3471a7d7 | |||
| 6bb0966eea | |||
| 5d0a4c8157 | |||
| a1c7b254d3 | |||
| 4cf79f7a3b | |||
| b1e50798d8 | |||
| 31ae3ea46e | |||
| 67d453cffe | |||
| a320323aa1 | |||
| ad2e5f2616 | |||
| f64f6b54b4 | |||
| ab557d4707 | |||
| e5a21bf7c6 | |||
| d5ef3b7d9b | |||
| f3753c8da0 | |||
| 6d8f843b12 | |||
| a96e2f9a08 | |||
| e08e728fc8 | |||
| 18d2d9f5ee | |||
| f2caa9876c | |||
| 4a06d79170 | |||
| 9a8814cc50 | |||
| d6327f2b03 | |||
| 4528270937 | |||
| 8ef693b218 | |||
| 46db2c6e95 | |||
| 6b897a6f71 | |||
| 7aecbe25cd | |||
| f79d438084 | |||
| 35eb93d829 | |||
| 9350c0dcdf | |||
| 39e989d3cc | |||
| a3cfd0d023 | |||
| 7b3a82f1d2 | |||
| 17ac9c081c | |||
| 97b44a94e4 | |||
| 4a9af17736 | |||
| a33160f33e | |||
| 4bd6f4f8ac | |||
| 71dc1ab93e | |||
| 0ec9e4a54e | |||
| 4284461b06 | |||
| 3f7f2fb40c | |||
| 47e93d1cf3 | |||
| a99d1c99a5 | |||
| 7b76df235a | |||
| c6d246f783 | |||
| ec8eb8bded | |||
| 39fb3bc304 | |||
| aca5deb814 | |||
| 824de11f21 | |||
| a4d93ac95a | |||
| c1e83e458b | |||
| 7ea5870a11 | |||
| cf6cef8e0e | |||
| bf2843b1bd | |||
| 8a6b75b6bb | |||
| e7e5e5ebf8 | |||
| 00e57dd1bf | |||
| 744841b092 | |||
| 136840cca4 | |||
| dbdd40bd3d | |||
| 8f3a752562 | |||
| fa43a9f937 | |||
| c222a801a8 | |||
| def78affb4 | |||
| edefe841d5 | |||
| 27b782ff32 | |||
| 654b577ce6 | |||
| 8dcc3bf187 | |||
| cd512402d9 | |||
| bc6f68e105 | |||
| b7f764799c | |||
| 6e39b225b2 | |||
| 744f0ed852 | |||
| 1b6d81f4e0 | |||
| bb370b390c | |||
| 378ef493b5 | |||
| a70f606362 | |||
| f66fbcd911 | |||
| 1c2e8c0c59 | |||
| 09ba9387bc | |||
| b97c5089ce | |||
| 7563f595f3 | |||
| 79ef6b5773 | |||
| 11d376325e | |||
| 1ef8011bb0 | |||
| fa1f407b76 | |||
| 094e05070a | |||
| 6d5d4c34d7 | |||
| 967f7dc85e | |||
| d541d8fbb6 | |||
| 89ac7738e4 | |||
| 7aca03de5c | |||
| 4e9dc5ce4a | |||
| d6d5f77183 | |||
| 62b3a7d7be | |||
| 437244540a | |||
| 05d102f354 | |||
| e4b0061f66 | |||
| e70e5d4208 | |||
| ccd0db635b | |||
| ab81479340 | |||
| 65be47d970 | |||
| 217a33cc2e | |||
| 6a55abcd81 | |||
| 330092d023 | |||
| 7b665d05cf | |||
| 352496fc3a | |||
| eda11f29d9 | |||
| 9fce7ce812 | |||
| 85009ab5b3 | |||
| fe01285d58 | |||
| d1fa4d3439 | |||
| 2300559081 | |||
| 4a9c0c864f | |||
| 4212e50ac5 | |||
| 009dfbef37 | |||
| 75ef9d5528 | |||
| ec4c52aff9 | |||
| bccc6a64ef | |||
| 93c0bb1d04 | |||
| 4061e6382a | |||
| b5dbd42eed | |||
| d0921f899c | |||
| c42a782bde | |||
| 6be0b74047 | |||
| 0fb9222f3a | |||
| db7ec0272a | |||
| 7558d4dc1c | |||
| f89b036d17 | |||
| 2b7df8c604 | |||
| ac2fb9e36d | |||
| 5ad5fe7014 | |||
| 5eb2bcfef6 | |||
| cd532435c2 | |||
| 6e2a803628 | |||
| 1e5e3d7f01 | |||
| ae15fd1f38 | |||
| bc1a9d692e | |||
| dce3f392ce | |||
| 6d3de34818 | |||
| f292fa8df6 | |||
| 82ffd4e8f4 | |||
| 6b5792aaf7 | |||
| e1a1ca6275 | |||
| d2e096957e | |||
| 3bb9d5b3a5 | |||
| 1be8d17899 | |||
| 46e8fb1ea5 | |||
| 02d8527244 | |||
| aeb3f4f97c | |||
| 46a8e147d0 | |||
| a5b68448b5 | |||
| c0ea6cc4d8 | |||
| 1086b6272a | |||
| cc6a231b3c | |||
| ead1d9229f | |||
| 1b77fc7091 | |||
| ee6d5e47ec | |||
| a6c9b5f089 | |||
| c9984ce011 | |||
| 4eaffd90d1 | |||
| cbae8d5ec2 | |||
| 027c0ee6bd | |||
| 4ba7352374 | |||
| 866547df79 | |||
| 7f278aafcb | |||
| 5c5a44e4ac | |||
| 83f9ff54ab | |||
| 1259e71589 | |||
| c9cc6cc6a1 | |||
| dc65016ecb | |||
| 9aae56682e | |||
| 176d302258 | |||
| e23fee5191 | |||
| 4f34af61f3 | |||
| 7311f3eaf7 | |||
| 1257e54ebe | |||
| fcbad101a4 | |||
| d2b5531a33 | |||
| 993c171e06 | |||
| b6ea05948f | |||
| 495dc45c10 | |||
| e4cf30ef07 | |||
| 5655280d45 | |||
| c793db8aeb | |||
| f711c68798 | |||
| 9f25d652d5 | |||
| be291fd0f9 | |||
| dbc14a0713 | |||
| 417259123b | |||
| 1ef22641b7 | |||
| 334401eb50 | |||
| b82d668437 | |||
| 93d40be1ac | |||
| cfc39b83bb | |||
| 9c76a35837 | |||
| 4a00bd3e00 | |||
| 6d6e2fa974 | |||
| 971ce88df2 | |||
| abfd426d3f | |||
| a2b2fd6ad5 | |||
| 76a6a36d29 | |||
| 1e09852b3c | |||
| 3b901ad60f | |||
| f287a5388f | |||
| 7e34037ffe | |||
| aa835d468b | |||
| 661eba3ae9 | |||
| de17b3add1 | |||
| 6fa3901ab0 | |||
| d14a2f1fff | |||
| c1f3b92c51 | |||
| 0de63a088d | |||
| 0de1c20551 | |||
| a769eb4db0 | |||
| 3e7e54b88f | |||
| 1b43799371 | |||
| 8438f80834 | |||
| 63b15af385 | |||
| 57c9184f4e | |||
| 0b6dd721e9 | |||
| 88ac766f53 | |||
| 58466afe72 | |||
| 04efe1d235 | |||
| aa9a102b71 | |||
| dc0f9bdada | |||
| 75f30bf7cd | |||
| 4a43b628d4 | |||
| 38370c751e | |||
| 764b1a2ccf | |||
| 5c047b78f3 | |||
| 5cbd0a19a4 | |||
| d2fb0fb4ff | |||
| 1dffbfb061 | |||
| 3ae8f75641 | |||
| df6de2d7fc | |||
| 4ebfa91a83 | |||
| 9f20476eea | |||
| fd5e523434 | |||
| 2c2714273e | |||
| c650091418 | |||
| d96a9d5f6b | |||
| a9b3cc146b | |||
| bdb897d032 | |||
| 2a876d8efe | |||
| bf4392a52f | |||
| dd24c3180d | |||
| f40acd76f1 | |||
| 96de4f028f | |||
| 2ecce822f3 | |||
| ea10765abd | |||
| 16f6181395 | |||
| 19ebf4a1a2 | |||
| 63b71dec24 | |||
| 1079893527 | |||
| 64ac6d4a12 | |||
| 9005de65a6 | |||
| 86dfc5521d | |||
| b005b1e95a | |||
| ce14986d2f | |||
| 06ce9e1017 | |||
| 09f5d3e14b | |||
| 73c3a8133a | |||
| 8918a14404 | |||
| 1959c53d75 | |||
| 33d80bed80 | |||
| 970f0bdb9d | |||
| 7711c74ef0 | |||
| e14aab632d | |||
| 62c2622ced | |||
| 0f26ee2288 | |||
| 6a44d668db | |||
| 858b6f6a91 | |||
| 7206209743 | |||
| 02f64b7ff6 | |||
| ac1788ae9a | |||
| 5699cf19f4 | |||
| 9ab9196b38 | |||
| baa89cc17d | |||
| 667769c987 | |||
| d3aa0bc3cc | |||
| d3547134e7 | |||
| b92420012c | |||
| 0fd10f404e | |||
| 08581776ae | |||
| af6f9fc570 | |||
| ecdef730d5 | |||
| 0f4120c1a0 | |||
| c8db4529b2 | |||
| 137e0068a3 | |||
| 366dbf0b52 | |||
| 89d08071fc | |||
| 8a8ed1ac56 | |||
| 491312218f | |||
| b74b031906 | |||
| 5608aca168 | |||
| fecfbd924a | |||
| a78a6169f8 | |||
| 628adedaec | |||
| 432a1766af | |||
| 74f8303803 | |||
| 2bc3d67e39 | |||
| 41fe5c50e2 | |||
| 36b1b56690 | |||
| 249eee341d | |||
| 2c61310077 | |||
| a519100852 | |||
| a38fc81a58 | |||
| af41d6a439 | |||
| 7244d433dd | |||
| 131493b5e1 | |||
| 4c5e444bcb | |||
| 2f55580e67 | |||
| b24cd1ecb7 | |||
| a519bd7690 | |||
| 8591d06244 | |||
| a26816d597 | |||
| ea6e025511 | |||
| 7849b0a107 | |||
| 152e605856 | |||
| bc6150aeac | |||
| 05d8b3a982 | |||
| d91ec9da2e | |||
| 198a948f6c | |||
| 1839acab1f | |||
| 6ad48ffa20 | |||
| 0975f1bf5f | |||
| 9cfcf396c1 | |||
| 0bcd88dad6 | |||
| 343ee5eb94 | |||
| d9e4679b65 | |||
| 4950de2cb5 | |||
| 28bf838b55 | |||
| b01684393a | |||
| 34b8027fb9 | |||
| f7af9c336b | |||
| a479a32ad5 | |||
| 7cdb003c47 | |||
| 4f9f16b93f | |||
| 7dcb08b09a | |||
| 7fbe8d905f | |||
| c3c760c03b | |||
| 79fb8f63a7 | |||
| 0dfa81f637 | |||
| d504daffa5 | |||
| fc97949887 | |||
| 0346e90ca7 | |||
| efeb85b48b | |||
| d698e6f3c1 | |||
| 2161d740df | |||
| a3e6deb1a8 | |||
| 12c686c102 | |||
| 7bceceef85 | |||
| ba15b31661 | |||
| 3b09174587 | |||
| 7482e2aa82 | |||
| e3c826b253 | |||
| db69464ddc | |||
| 014c87bc3e | |||
| ba606d229a | |||
| fbb4faacbc | |||
| 9b7fd09278 | |||
| b90973b195 | |||
| 96b5b72d30 | |||
| e2e8279fce | |||
| 5ed1f465a2 | |||
| 995357710e | |||
| a98106072c | |||
| c1be466467 | |||
| 6f6f43c46e | |||
| 9cbe83b57c | |||
| e46b295449 | |||
| 3fd3634257 | |||
| 231990088a | |||
| 20da82762e | |||
| 0d9be68aff | |||
| 165b5a4fd2 | |||
| 812014d6d3 | |||
| d3e73b92e0 | |||
| 00da05f24f | |||
| e4694256eb | |||
| 18b278577d | |||
| a252bb7a30 | |||
| c240360710 | |||
| 893308c38e | |||
| 48defe849d | |||
| 3c03f58488 | |||
| 2470e0de7f | |||
| 387fd64db0 | |||
| 4ffd269db5 | |||
| 5ce25e20c3 | |||
| 63efa219f5 | |||
| 826d148305 | |||
| 323d80ef55 | |||
| 5fa21be9d2 | |||
| 902588638d | |||
| a1ab094652 | |||
| 902b460b9c | |||
| 073205ace3 | |||
| 98c1d81875 | |||
| 2f49650e15 | |||
| 1be9300dc4 | |||
| d9b77b67b2 | |||
| 2f674f5323 | |||
| c8fa39e552 | |||
| 3b73e3ab26 | |||
| c606ac4361 | |||
| da4c9c8c40 | |||
| 31ed11393f | |||
| 1c5157d97e | |||
| cf241867d8 | |||
| 5a9f9f70d9 | |||
| 19ff19fb80 | |||
| 87076ed586 | |||
| 473250d8bc | |||
| cd983f0dd9 | |||
| 5c4753555e | |||
| 8f79222b8b | |||
| 145fd9614b | |||
| 41057c20fc | |||
| 528b8a6b9b | |||
| e3941d5565 | |||
| 4d11a4fd29 | |||
| aa580351d9 | |||
| 570e13127d | |||
| fb7b50b36b | |||
| d1c5cf518e | |||
| 4e392bee8e |
@@ -0,0 +1,21 @@
|
|||||||
|
## DO NOT MODIFY THIS FILE MANUALLY. This is part of auto-baselining from 1ES Pipeline Templates. Go to [https://aka.ms/1espt-autobaselining] for more details.
|
||||||
|
|
||||||
|
pipelines:
|
||||||
|
111:
|
||||||
|
retail:
|
||||||
|
source:
|
||||||
|
credscan:
|
||||||
|
lastModifiedDate: 2024-09-10
|
||||||
|
eslint:
|
||||||
|
lastModifiedDate: 2024-09-10
|
||||||
|
psscriptanalyzer:
|
||||||
|
lastModifiedDate: 2024-09-10
|
||||||
|
armory:
|
||||||
|
lastModifiedDate: 2024-09-10
|
||||||
|
binary:
|
||||||
|
credscan:
|
||||||
|
lastModifiedDate: 2025-02-04
|
||||||
|
binskim:
|
||||||
|
lastModifiedDate: 2025-02-04
|
||||||
|
spotbugs:
|
||||||
|
lastModifiedDate: 2025-02-04
|
||||||
@@ -0,0 +1,255 @@
|
|||||||
|
{
|
||||||
|
"properties": {
|
||||||
|
"helpUri": "https://eng.ms/docs/microsoft-security/security/azure-security/cloudai-security-fundamentals-engineering/security-integration/guardian-wiki/microsoft-guardian/general/baselines"
|
||||||
|
},
|
||||||
|
"version": "1.0.0",
|
||||||
|
"baselines": {
|
||||||
|
"default": {
|
||||||
|
"name": "default",
|
||||||
|
"createdDate": "2025-01-28 06:29:05Z",
|
||||||
|
"lastUpdatedDate": "2025-01-28 06:29:05Z"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"results": {
|
||||||
|
"ea3b2bf4f5b3d0bd8a6ad35cc61e49f2a1596660fd66d17d740e4806e7ed7dcc": {
|
||||||
|
"signature": "ea3b2bf4f5b3d0bd8a6ad35cc61e49f2a1596660fd66d17d740e4806e7ed7dcc",
|
||||||
|
"alternativeSignatures": [
|
||||||
|
"ff528c0b5a010ae7b5e9178b004a8b816a429a28ba98ce8336466b490a09dcef"
|
||||||
|
],
|
||||||
|
"target": ".build/win32-arm64/system-setup/VSCodeSetup-arm64-1.97.0-insider.exe",
|
||||||
|
"memberOf": [
|
||||||
|
"default"
|
||||||
|
],
|
||||||
|
"tool": "binskim",
|
||||||
|
"ruleId": "BA2009",
|
||||||
|
"createdDate": "2025-01-30 19:19:49Z",
|
||||||
|
"expirationDate": "2025-07-19 21:12:48Z",
|
||||||
|
"justification": "This error is baselined with an expiration date of 180 days from 2025-01-30 21:12:48Z"
|
||||||
|
},
|
||||||
|
"12babbc85192ed1c8d927693da788537c1eef199bbecbe226f940a2d0e97637c": {
|
||||||
|
"signature": "12babbc85192ed1c8d927693da788537c1eef199bbecbe226f940a2d0e97637c",
|
||||||
|
"alternativeSignatures": [
|
||||||
|
"35b0519e201e56fb87fc6fb085e6fb1df5b89715142bb9086a5b2006e0fd4ced"
|
||||||
|
],
|
||||||
|
"target": ".build/win32-arm64/system-setup/VSCodeSetup-arm64-1.97.0-insider.exe",
|
||||||
|
"memberOf": [
|
||||||
|
"default"
|
||||||
|
],
|
||||||
|
"tool": "binskim",
|
||||||
|
"ruleId": "BA2018",
|
||||||
|
"createdDate": "2025-01-30 19:19:49Z",
|
||||||
|
"expirationDate": "2025-07-19 21:12:48Z",
|
||||||
|
"justification": "This error is baselined with an expiration date of 180 days from 2025-01-30 21:12:48Z"
|
||||||
|
},
|
||||||
|
"49163bd1dc9d965d3baced1694dc8c43305b8bf96e884f478d8e4bd124454ba0": {
|
||||||
|
"signature": "49163bd1dc9d965d3baced1694dc8c43305b8bf96e884f478d8e4bd124454ba0",
|
||||||
|
"alternativeSignatures": [
|
||||||
|
"aa80bcf44aa8ddd20fb9802e9032c1257048b973896a944ded70bb195f060b2a"
|
||||||
|
],
|
||||||
|
"target": ".build/win32-arm64/user-setup/VSCodeUserSetup-arm64-1.97.0-insider.exe",
|
||||||
|
"memberOf": [
|
||||||
|
"default"
|
||||||
|
],
|
||||||
|
"tool": "binskim",
|
||||||
|
"ruleId": "BA2009",
|
||||||
|
"createdDate": "2025-01-30 19:21:17Z",
|
||||||
|
"expirationDate": "2025-07-19 21:12:48Z",
|
||||||
|
"justification": "This error is baselined with an expiration date of 180 days from 2025-01-30 21:12:48Z"
|
||||||
|
},
|
||||||
|
"c405af02e021c3a473d4e45ec4daa658db1527ea7430c6be968d182e7b50fbd1": {
|
||||||
|
"signature": "c405af02e021c3a473d4e45ec4daa658db1527ea7430c6be968d182e7b50fbd1",
|
||||||
|
"alternativeSignatures": [
|
||||||
|
"619d2a1a77f55b4181493b8cfdf09be5261e539115752af2e4938f5ac04af132"
|
||||||
|
],
|
||||||
|
"target": ".build/win32-arm64/user-setup/VSCodeUserSetup-arm64-1.97.0-insider.exe",
|
||||||
|
"memberOf": [
|
||||||
|
"default"
|
||||||
|
],
|
||||||
|
"tool": "binskim",
|
||||||
|
"ruleId": "BA2018",
|
||||||
|
"createdDate": "2025-01-30 19:21:17Z",
|
||||||
|
"expirationDate": "2025-07-19 21:12:48Z",
|
||||||
|
"justification": "This error is baselined with an expiration date of 180 days from 2025-01-30 21:12:48Z"
|
||||||
|
},
|
||||||
|
"71b8515b2eb51cfd5eace11cedb15189d51ce9e479095a5938334416088cbc03": {
|
||||||
|
"signature": "71b8515b2eb51cfd5eace11cedb15189d51ce9e479095a5938334416088cbc03",
|
||||||
|
"alternativeSignatures": [
|
||||||
|
"b34279fc5fec828b8dcd9ca873804e85d7d9cd78554ec109d2dd493351a7a244"
|
||||||
|
],
|
||||||
|
"target": ".build/win32-x64/system-setup/VSCodeSetup-x64-1.97.0-insider.exe",
|
||||||
|
"memberOf": [
|
||||||
|
"default"
|
||||||
|
],
|
||||||
|
"tool": "binskim",
|
||||||
|
"ruleId": "BA2009",
|
||||||
|
"createdDate": "2025-01-30 19:51:51Z",
|
||||||
|
"expirationDate": "2025-07-19 21:12:48Z",
|
||||||
|
"justification": "This error is baselined with an expiration date of 180 days from 2025-01-30 21:12:48Z"
|
||||||
|
},
|
||||||
|
"9238de77a5320039def14694d1b6f501cc2288f13c9c688d2e0501fc5a56ee61": {
|
||||||
|
"signature": "9238de77a5320039def14694d1b6f501cc2288f13c9c688d2e0501fc5a56ee61",
|
||||||
|
"alternativeSignatures": [
|
||||||
|
"1d17616a549e9f36d814c4e802d651b1af453ce0a23d4478eef39be81adcc16b"
|
||||||
|
],
|
||||||
|
"target": ".build/win32-x64/system-setup/VSCodeSetup-x64-1.97.0-insider.exe",
|
||||||
|
"memberOf": [
|
||||||
|
"default"
|
||||||
|
],
|
||||||
|
"tool": "binskim",
|
||||||
|
"ruleId": "BA2018",
|
||||||
|
"createdDate": "2025-01-30 19:51:51Z",
|
||||||
|
"expirationDate": "2025-07-19 21:12:48Z",
|
||||||
|
"justification": "This error is baselined with an expiration date of 180 days from 2025-01-30 21:12:48Z"
|
||||||
|
},
|
||||||
|
"bad8b698b48c1da9ece953903581c66bf98bc829ae1a6adcd3b5c2056a6fcd01": {
|
||||||
|
"signature": "bad8b698b48c1da9ece953903581c66bf98bc829ae1a6adcd3b5c2056a6fcd01",
|
||||||
|
"alternativeSignatures": [
|
||||||
|
"057376d31b97e8ce3ecf6a180a553b932d7e5be6e2b07a08027d5dfabe35e82c"
|
||||||
|
],
|
||||||
|
"target": ".build/win32-x64/user-setup/VSCodeUserSetup-x64-1.97.0-insider.exe",
|
||||||
|
"memberOf": [
|
||||||
|
"default"
|
||||||
|
],
|
||||||
|
"tool": "binskim",
|
||||||
|
"ruleId": "BA2009",
|
||||||
|
"createdDate": "2025-01-30 19:53:13Z",
|
||||||
|
"expirationDate": "2025-07-19 21:12:48Z",
|
||||||
|
"justification": "This error is baselined with an expiration date of 180 days from 2025-01-30 21:12:48Z"
|
||||||
|
},
|
||||||
|
"cc7c248b0fd4c105e9a393ae232bf0d314ec50e65357a5e7e7d68f6f10c77077": {
|
||||||
|
"signature": "cc7c248b0fd4c105e9a393ae232bf0d314ec50e65357a5e7e7d68f6f10c77077",
|
||||||
|
"alternativeSignatures": [
|
||||||
|
"f3867098aff3368682df9926e85a35ec05cf905f27d0c157430021c3169f899d"
|
||||||
|
],
|
||||||
|
"target": ".build/win32-x64/user-setup/VSCodeUserSetup-x64-1.97.0-insider.exe",
|
||||||
|
"memberOf": [
|
||||||
|
"default"
|
||||||
|
],
|
||||||
|
"tool": "binskim",
|
||||||
|
"ruleId": "BA2018",
|
||||||
|
"createdDate": "2025-01-30 19:53:13Z",
|
||||||
|
"expirationDate": "2025-07-19 21:12:48Z",
|
||||||
|
"justification": "This error is baselined with an expiration date of 180 days from 2025-01-30 21:12:48Z"
|
||||||
|
},
|
||||||
|
"8c53250a171412b84dedcbb22cdab9ec365d9b52d74b09c070097fff45372de0": {
|
||||||
|
"signature": "8c53250a171412b84dedcbb22cdab9ec365d9b52d74b09c070097fff45372de0",
|
||||||
|
"alternativeSignatures": [
|
||||||
|
"314267784b0ea867006e00b809a93498fae3264e42d1a3a7745ab13180a5b6ef"
|
||||||
|
],
|
||||||
|
"target": ".build/win32-arm64/system-setup/VSCodeSetup-arm64-1.98.0-insider.exe",
|
||||||
|
"memberOf": [
|
||||||
|
"default"
|
||||||
|
],
|
||||||
|
"tool": "binskim",
|
||||||
|
"ruleId": "BA2009",
|
||||||
|
"createdDate": "2025-02-04 06:16:33Z",
|
||||||
|
"expirationDate": "2025-07-24 07:25:17Z",
|
||||||
|
"justification": "This error is baselined with an expiration date of 180 days from 2025-02-04 07:25:17Z"
|
||||||
|
},
|
||||||
|
"a6a58d971da858f4af219672cef73ffd0aacc47f1e2c12b8b44a428e1330d3de": {
|
||||||
|
"signature": "a6a58d971da858f4af219672cef73ffd0aacc47f1e2c12b8b44a428e1330d3de",
|
||||||
|
"alternativeSignatures": [
|
||||||
|
"4e40f2f1683f0bf2245f35d0ebbcf2f446274d84b1db09d8e76ddfdcad5d4479"
|
||||||
|
],
|
||||||
|
"target": ".build/win32-arm64/system-setup/VSCodeSetup-arm64-1.98.0-insider.exe",
|
||||||
|
"memberOf": [
|
||||||
|
"default"
|
||||||
|
],
|
||||||
|
"tool": "binskim",
|
||||||
|
"ruleId": "BA2018",
|
||||||
|
"createdDate": "2025-02-04 06:16:33Z",
|
||||||
|
"expirationDate": "2025-07-24 07:25:17Z",
|
||||||
|
"justification": "This error is baselined with an expiration date of 180 days from 2025-02-04 07:25:17Z"
|
||||||
|
},
|
||||||
|
"90e0f060e01e4a55620f609ac3241b62e8f54a059e9f4d292e93a4305fd3c39e": {
|
||||||
|
"signature": "90e0f060e01e4a55620f609ac3241b62e8f54a059e9f4d292e93a4305fd3c39e",
|
||||||
|
"alternativeSignatures": [
|
||||||
|
"377fe43ff8404d07f4a6ca763175004f360397ded6cf5d55b655646ada90e39c"
|
||||||
|
],
|
||||||
|
"target": ".build/win32-arm64/user-setup/VSCodeUserSetup-arm64-1.98.0-insider.exe",
|
||||||
|
"memberOf": [
|
||||||
|
"default"
|
||||||
|
],
|
||||||
|
"tool": "binskim",
|
||||||
|
"ruleId": "BA2009",
|
||||||
|
"createdDate": "2025-02-04 06:17:54Z",
|
||||||
|
"expirationDate": "2025-07-24 07:25:17Z",
|
||||||
|
"justification": "This error is baselined with an expiration date of 180 days from 2025-02-04 07:25:17Z"
|
||||||
|
},
|
||||||
|
"f36c3dc19566098a923877d16d6ebfcbd971f8fcd8210afb8f5558fb5ba1f203": {
|
||||||
|
"signature": "f36c3dc19566098a923877d16d6ebfcbd971f8fcd8210afb8f5558fb5ba1f203",
|
||||||
|
"alternativeSignatures": [
|
||||||
|
"1af1f475c1617701e3d7a8fd465916bcc60c3125b8807af5d47d49137d9d468c"
|
||||||
|
],
|
||||||
|
"target": ".build/win32-arm64/user-setup/VSCodeUserSetup-arm64-1.98.0-insider.exe",
|
||||||
|
"memberOf": [
|
||||||
|
"default"
|
||||||
|
],
|
||||||
|
"tool": "binskim",
|
||||||
|
"ruleId": "BA2018",
|
||||||
|
"createdDate": "2025-02-04 06:17:54Z",
|
||||||
|
"expirationDate": "2025-07-24 07:25:17Z",
|
||||||
|
"justification": "This error is baselined with an expiration date of 180 days from 2025-02-04 07:25:17Z"
|
||||||
|
},
|
||||||
|
"71193d108c53bb802f5c491276365bcff0645fb380be57288f3fbd6896166d3a": {
|
||||||
|
"signature": "71193d108c53bb802f5c491276365bcff0645fb380be57288f3fbd6896166d3a",
|
||||||
|
"alternativeSignatures": [
|
||||||
|
"420cae2e6e34b93d7b74fc1ffddfdf23b57650ae989d838bb2d67f28e4e1db0e"
|
||||||
|
],
|
||||||
|
"target": ".build/win32-x64/system-setup/VSCodeSetup-x64-1.98.0-insider.exe",
|
||||||
|
"memberOf": [
|
||||||
|
"default"
|
||||||
|
],
|
||||||
|
"tool": "binskim",
|
||||||
|
"ruleId": "BA2009",
|
||||||
|
"createdDate": "2025-02-04 07:11:19Z",
|
||||||
|
"expirationDate": "2025-07-24 07:25:17Z",
|
||||||
|
"justification": "This error is baselined with an expiration date of 180 days from 2025-02-04 07:25:17Z"
|
||||||
|
},
|
||||||
|
"444c302f49bdedcafe772322a09727b2279e3265d99deb2e307defeae3ef200b": {
|
||||||
|
"signature": "444c302f49bdedcafe772322a09727b2279e3265d99deb2e307defeae3ef200b",
|
||||||
|
"alternativeSignatures": [
|
||||||
|
"4ff6ccbdb0745d43d3b61f82fb2f4d8a64fe9787525df81a6d7b825e79282085"
|
||||||
|
],
|
||||||
|
"target": ".build/win32-x64/system-setup/VSCodeSetup-x64-1.98.0-insider.exe",
|
||||||
|
"memberOf": [
|
||||||
|
"default"
|
||||||
|
],
|
||||||
|
"tool": "binskim",
|
||||||
|
"ruleId": "BA2018",
|
||||||
|
"createdDate": "2025-02-04 07:11:19Z",
|
||||||
|
"expirationDate": "2025-07-24 07:25:17Z",
|
||||||
|
"justification": "This error is baselined with an expiration date of 180 days from 2025-02-04 07:25:17Z"
|
||||||
|
},
|
||||||
|
"4670c7c096a69ca428429ffa1f5250aac9f2e07beac0ffe587ffb37bdb1da4d4": {
|
||||||
|
"signature": "4670c7c096a69ca428429ffa1f5250aac9f2e07beac0ffe587ffb37bdb1da4d4",
|
||||||
|
"alternativeSignatures": [
|
||||||
|
"7cead96cb508ab6e37e27bcc0f8b7ed8d0761b77f4793958c46c5ff3892ab1b6"
|
||||||
|
],
|
||||||
|
"target": ".build/win32-x64/user-setup/VSCodeUserSetup-x64-1.98.0-insider.exe",
|
||||||
|
"memberOf": [
|
||||||
|
"default"
|
||||||
|
],
|
||||||
|
"tool": "binskim",
|
||||||
|
"ruleId": "BA2009",
|
||||||
|
"createdDate": "2025-02-04 07:13:22Z",
|
||||||
|
"expirationDate": "2025-07-24 07:25:17Z",
|
||||||
|
"justification": "This error is baselined with an expiration date of 180 days from 2025-02-04 07:25:17Z"
|
||||||
|
},
|
||||||
|
"a359b4a5ed2378a73f3bba93e3fb1c595db7423c3082635d12d101bbeb0a51b8": {
|
||||||
|
"signature": "a359b4a5ed2378a73f3bba93e3fb1c595db7423c3082635d12d101bbeb0a51b8",
|
||||||
|
"alternativeSignatures": [
|
||||||
|
"125b52a21ef619a95e695085deb9492280bcf2c1decdd5e87e6416af5982d02d"
|
||||||
|
],
|
||||||
|
"target": ".build/win32-x64/user-setup/VSCodeUserSetup-x64-1.98.0-insider.exe",
|
||||||
|
"memberOf": [
|
||||||
|
"default"
|
||||||
|
],
|
||||||
|
"tool": "binskim",
|
||||||
|
"ruleId": "BA2018",
|
||||||
|
"createdDate": "2025-02-04 07:13:22Z",
|
||||||
|
"expirationDate": "2025-07-24 07:25:17Z",
|
||||||
|
"justification": "This error is baselined with an expiration date of 180 days from 2025-02-04 07:25:17Z"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,46 @@
|
|||||||
|
{
|
||||||
|
"hydrated": false,
|
||||||
|
"properties": {
|
||||||
|
"helpUri": "https://eng.ms/docs/microsoft-security/security/azure-security/cloudai-security-fundamentals-engineering/security-integration/guardian-wiki/microsoft-guardian/general/suppressions"
|
||||||
|
},
|
||||||
|
"version": "1.0.0",
|
||||||
|
"suppressionSets": {
|
||||||
|
"default": {
|
||||||
|
"name": "default",
|
||||||
|
"createdDate": "2025-03-17 11:52:32Z",
|
||||||
|
"lastUpdatedDate": "2025-03-17 11:52:32Z"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"results": {
|
||||||
|
"216e2ac9cb596796224b47799f656570a01fa0d9b5f935608b47d15ab613c8e8": {
|
||||||
|
"signature": "216e2ac9cb596796224b47799f656570a01fa0d9b5f935608b47d15ab613c8e8",
|
||||||
|
"alternativeSignatures": [
|
||||||
|
"07746898f43afab7cc50931b33154c2d9e1a35f82a649dbe8aecf785b3d5a813"
|
||||||
|
],
|
||||||
|
"memberOf": [
|
||||||
|
"default"
|
||||||
|
],
|
||||||
|
"createdDate": "2025-03-17 11:52:32Z"
|
||||||
|
},
|
||||||
|
"77797a3e44634bb2994bd13ccc95ff4575bba474585dbd2cf3068a1c16bc0624": {
|
||||||
|
"signature": "77797a3e44634bb2994bd13ccc95ff4575bba474585dbd2cf3068a1c16bc0624",
|
||||||
|
"alternativeSignatures": [
|
||||||
|
"4a6cb67bd4b401e9669c13a2162660aaefc0a94a4122e5b50c198414db545672"
|
||||||
|
],
|
||||||
|
"memberOf": [
|
||||||
|
"default"
|
||||||
|
],
|
||||||
|
"createdDate": "2025-03-17 11:52:32Z"
|
||||||
|
},
|
||||||
|
"30418bcc5269eaeb2832a2404465784431d4e72a2af332320c2b1db4768902ad": {
|
||||||
|
"signature": "30418bcc5269eaeb2832a2404465784431d4e72a2af332320c2b1db4768902ad",
|
||||||
|
"alternativeSignatures": [
|
||||||
|
"b7b9eb974d7d3a4ae14df8695ca5a62592c8c9d20b7eda70a6535d50cbda3e7f"
|
||||||
|
],
|
||||||
|
"memberOf": [
|
||||||
|
"default"
|
||||||
|
],
|
||||||
|
"createdDate": "2025-03-17 11:52:32Z"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
# Code - OSS Development Container
|
# Code - OSS Development Container
|
||||||
|
|
||||||
[](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/microsoft/vscode)
|
[](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/microsoft/vscode)
|
||||||
|
|
||||||
This repository includes configuration for a development container for working with Code - OSS in a local container or using [GitHub Codespaces](https://github.com/features/codespaces).
|
This repository includes configuration for a development container for working with Code - OSS in a local container or using [GitHub Codespaces](https://github.com/features/codespaces).
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "Void",
|
"name": "Code - OSS",
|
||||||
"build": {
|
"build": {
|
||||||
"dockerfile": "Dockerfile"
|
"dockerfile": "Dockerfile"
|
||||||
},
|
},
|
||||||
|
|||||||
Regular → Executable
Regular → Executable
@@ -12,6 +12,10 @@
|
|||||||
**/extensions/markdown-math/notebook-out/**
|
**/extensions/markdown-math/notebook-out/**
|
||||||
**/extensions/notebook-renderers/renderer-out/index.js
|
**/extensions/notebook-renderers/renderer-out/index.js
|
||||||
**/extensions/simple-browser/media/index.js
|
**/extensions/simple-browser/media/index.js
|
||||||
|
**/extensions/terminal-suggest/src/completions/upstream/**
|
||||||
|
**/extensions/terminal-suggest/src/shell/zshBuiltinsCache.ts
|
||||||
|
**/extensions/terminal-suggest/src/shell/fishBuiltinsCache.ts
|
||||||
|
**/extensions/terminal-suggest/third_party/**
|
||||||
**/extensions/typescript-language-features/test-workspace/**
|
**/extensions/typescript-language-features/test-workspace/**
|
||||||
**/extensions/typescript-language-features/extension.webpack.config.js
|
**/extensions/typescript-language-features/extension.webpack.config.js
|
||||||
**/extensions/typescript-language-features/extension-browser.webpack.config.js
|
**/extensions/typescript-language-features/extension-browser.webpack.config.js
|
||||||
@@ -30,15 +34,8 @@
|
|||||||
**/src/vs/*/**/*.d.ts
|
**/src/vs/*/**/*.d.ts
|
||||||
**/src/vs/base/test/common/filters.perf.data.js
|
**/src/vs/base/test/common/filters.perf.data.js
|
||||||
**/src/vs/loader.js
|
**/src/vs/loader.js
|
||||||
**/src2/**/dompurify.js
|
|
||||||
**/src2/**/marked.js
|
|
||||||
**/src2/**/semver.js
|
|
||||||
**/src2/typings/**/*.d.ts
|
|
||||||
**/src2/vs/*/**/*.d.ts
|
|
||||||
**/src2/vs/base/test/common/filters.perf.data.js
|
|
||||||
**/src2/vs/loader.js
|
|
||||||
**/test/unit/assert.js
|
**/test/unit/assert.js
|
||||||
**/test/unit/assert-esm.js
|
|
||||||
**/test/automation/out/**
|
**/test/automation/out/**
|
||||||
**/typings/**
|
**/typings/**
|
||||||
|
**/.build/**
|
||||||
!.vscode
|
!.vscode
|
||||||
+3
-2
@@ -12,7 +12,8 @@ export = new class ApiProviderNaming implements eslint.Rule.RuleModule {
|
|||||||
readonly meta: eslint.Rule.RuleMetaData = {
|
readonly meta: eslint.Rule.RuleMetaData = {
|
||||||
messages: {
|
messages: {
|
||||||
amdX: 'Use `import type` for import declarations, use `amdX#importAMDNodeModule` for import expressions'
|
amdX: 'Use `import type` for import declarations, use `amdX#importAMDNodeModule` for import expressions'
|
||||||
}
|
},
|
||||||
|
schema: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
create(context: eslint.Rule.RuleContext): eslint.Rule.RuleListener {
|
create(context: eslint.Rule.RuleContext): eslint.Rule.RuleListener {
|
||||||
@@ -50,7 +51,7 @@ export = new class ApiProviderNaming implements eslint.Rule.RuleModule {
|
|||||||
node,
|
node,
|
||||||
messageId: 'amdX'
|
messageId: 'amdX'
|
||||||
});
|
});
|
||||||
}
|
};
|
||||||
|
|
||||||
return {
|
return {
|
||||||
['ImportExpression Literal']: checkImport,
|
['ImportExpression Literal']: checkImport,
|
||||||
+3
-2
@@ -8,7 +8,8 @@ import * as eslint from 'eslint';
|
|||||||
export = new class DeclareServiceBrand implements eslint.Rule.RuleModule {
|
export = new class DeclareServiceBrand implements eslint.Rule.RuleModule {
|
||||||
|
|
||||||
readonly meta: eslint.Rule.RuleMetaData = {
|
readonly meta: eslint.Rule.RuleMetaData = {
|
||||||
fixable: 'code'
|
fixable: 'code',
|
||||||
|
schema: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
create(context: eslint.Rule.RuleContext): eslint.Rule.RuleListener {
|
create(context: eslint.Rule.RuleContext): eslint.Rule.RuleListener {
|
||||||
@@ -18,7 +19,7 @@ export = new class DeclareServiceBrand implements eslint.Rule.RuleModule {
|
|||||||
node,
|
node,
|
||||||
message: `The '_serviceBrand'-property should not have a value`,
|
message: `The '_serviceBrand'-property should not have a value`,
|
||||||
fix: (fixer) => {
|
fix: (fixer) => {
|
||||||
return fixer.replaceText(node, 'declare _serviceBrand: undefined;')
|
return fixer.replaceText(node, 'declare _serviceBrand: undefined;');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
+3
-2
@@ -13,7 +13,8 @@ export = new class EnsureNoDisposablesAreLeakedInTestSuite implements eslint.Rul
|
|||||||
messages: {
|
messages: {
|
||||||
ensure: 'Suites should include a call to `ensureNoDisposablesAreLeakedInTestSuite()` to ensure no disposables are leaked in tests.'
|
ensure: 'Suites should include a call to `ensureNoDisposablesAreLeakedInTestSuite()` to ensure no disposables are leaked in tests.'
|
||||||
},
|
},
|
||||||
fixable: 'code'
|
fixable: 'code',
|
||||||
|
schema: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
create(context: eslint.Rule.RuleContext): eslint.Rule.RuleListener {
|
create(context: eslint.Rule.RuleContext): eslint.Rule.RuleListener {
|
||||||
@@ -26,7 +27,7 @@ export = new class EnsureNoDisposablesAreLeakedInTestSuite implements eslint.Rul
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
[`Program > ExpressionStatement > CallExpression[callee.name='suite']`]: (node: Node) => {
|
[`Program > ExpressionStatement > CallExpression[callee.name='suite']`]: (node: Node) => {
|
||||||
const src = context.getSourceCode().getText(node)
|
const src = context.getSourceCode().getText(node);
|
||||||
if (!src.includes('ensureNoDisposablesAreLeakedInTestSuite(')) {
|
if (!src.includes('ensureNoDisposablesAreLeakedInTestSuite(')) {
|
||||||
context.report({
|
context.report({
|
||||||
node,
|
node,
|
||||||
+5
-4
@@ -4,7 +4,7 @@
|
|||||||
*--------------------------------------------------------------------------------------------*/
|
*--------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
import * as eslint from 'eslint';
|
import * as eslint from 'eslint';
|
||||||
import { TSESTree } from '@typescript-eslint/experimental-utils';
|
import { TSESTree } from '@typescript-eslint/utils';
|
||||||
import * as path from 'path';
|
import * as path from 'path';
|
||||||
import minimatch from 'minimatch';
|
import minimatch from 'minimatch';
|
||||||
import { createImportRuleListener } from './utils';
|
import { createImportRuleListener } from './utils';
|
||||||
@@ -44,13 +44,14 @@ export = new class implements eslint.Rule.RuleModule {
|
|||||||
readonly meta: eslint.Rule.RuleMetaData = {
|
readonly meta: eslint.Rule.RuleMetaData = {
|
||||||
messages: {
|
messages: {
|
||||||
badImport: 'Imports violates \'{{restrictions}}\' restrictions. See https://github.com/microsoft/vscode/wiki/Source-Code-Organization',
|
badImport: 'Imports violates \'{{restrictions}}\' restrictions. See https://github.com/microsoft/vscode/wiki/Source-Code-Organization',
|
||||||
badFilename: 'Missing definition in `code-import-patterns` for this file. Define rules at https://github.com/microsoft/vscode/blob/main/.eslintrc.json',
|
badFilename: 'Missing definition in `code-import-patterns` for this file. Define rules at https://github.com/microsoft/vscode/blob/main/eslint.config.js',
|
||||||
badAbsolute: 'Imports have to be relative to support ESM',
|
badAbsolute: 'Imports have to be relative to support ESM',
|
||||||
badExtension: 'Imports have to end with `.js` or `.css` to support ESM',
|
badExtension: 'Imports have to end with `.js` or `.css` to support ESM',
|
||||||
},
|
},
|
||||||
docs: {
|
docs: {
|
||||||
url: 'https://github.com/microsoft/vscode/wiki/Source-Code-Organization'
|
url: 'https://github.com/microsoft/vscode/wiki/Source-Code-Organization'
|
||||||
}
|
},
|
||||||
|
schema: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
create(context: eslint.Rule.RuleContext): eslint.Rule.RuleListener {
|
create(context: eslint.Rule.RuleContext): eslint.Rule.RuleListener {
|
||||||
@@ -249,7 +250,7 @@ export = new class implements eslint.Rule.RuleModule {
|
|||||||
const relativeFilename = getRelativeFilename(context);
|
const relativeFilename = getRelativeFilename(context);
|
||||||
importPath = path.posix.join(path.posix.dirname(relativeFilename), importPath);
|
importPath = path.posix.join(path.posix.dirname(relativeFilename), importPath);
|
||||||
if (/^src\/vs\//.test(importPath)) {
|
if (/^src\/vs\//.test(importPath)) {
|
||||||
// resolve using AMD base url
|
// resolve using base url
|
||||||
importPath = importPath.substring('src/'.length);
|
importPath = importPath.substring('src/'.length);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -20,7 +20,18 @@ export = new class implements eslint.Rule.RuleModule {
|
|||||||
},
|
},
|
||||||
docs: {
|
docs: {
|
||||||
url: 'https://github.com/microsoft/vscode/wiki/Source-Code-Organization'
|
url: 'https://github.com/microsoft/vscode/wiki/Source-Code-Organization'
|
||||||
}
|
},
|
||||||
|
schema: [
|
||||||
|
{
|
||||||
|
type: 'object',
|
||||||
|
additionalProperties: {
|
||||||
|
type: 'array',
|
||||||
|
items: {
|
||||||
|
type: 'string'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
};
|
};
|
||||||
|
|
||||||
create(context: eslint.Rule.RuleContext): eslint.Rule.RuleListener {
|
create(context: eslint.Rule.RuleContext): eslint.Rule.RuleListener {
|
||||||
@@ -0,0 +1,70 @@
|
|||||||
|
/*---------------------------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||||
|
*--------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
import * as eslint from 'eslint';
|
||||||
|
import { dirname, relative } from 'path';
|
||||||
|
import minimatch from 'minimatch';
|
||||||
|
|
||||||
|
export = new class implements eslint.Rule.RuleModule {
|
||||||
|
|
||||||
|
readonly meta: eslint.Rule.RuleMetaData = {
|
||||||
|
messages: {
|
||||||
|
layerbreaker: 'You are only allowed to define limited top level functions.'
|
||||||
|
},
|
||||||
|
schema: {
|
||||||
|
type: 'array',
|
||||||
|
items: {
|
||||||
|
type: 'object',
|
||||||
|
additionalProperties: {
|
||||||
|
type: 'array',
|
||||||
|
items: {
|
||||||
|
type: 'string'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
create(context: eslint.Rule.RuleContext): eslint.Rule.RuleListener {
|
||||||
|
let fileRelativePath = relative(dirname(__dirname), context.getFilename());
|
||||||
|
if (!fileRelativePath.endsWith('/')) {
|
||||||
|
fileRelativePath += '/';
|
||||||
|
}
|
||||||
|
const ruleArgs = <Record<string, string[]>>context.options[0];
|
||||||
|
|
||||||
|
const matchingKey = Object.keys(ruleArgs).find(key => fileRelativePath.startsWith(key) || minimatch(fileRelativePath, key));
|
||||||
|
if (!matchingKey) {
|
||||||
|
// nothing
|
||||||
|
return {};
|
||||||
|
}
|
||||||
|
|
||||||
|
const restrictedFunctions = ruleArgs[matchingKey];
|
||||||
|
|
||||||
|
return {
|
||||||
|
FunctionDeclaration: (node: any) => {
|
||||||
|
const isTopLevel = node.parent.type === 'Program';
|
||||||
|
const functionName = node.id.name;
|
||||||
|
if (isTopLevel && !restrictedFunctions.includes(node.id.name)) {
|
||||||
|
context.report({
|
||||||
|
node,
|
||||||
|
message: `Top-level function '${functionName}' is restricted in this file. Allowed functions are: ${restrictedFunctions.join(', ')}.`
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
ExportNamedDeclaration(node: any) {
|
||||||
|
if (node.declaration && node.declaration.type === 'FunctionDeclaration') {
|
||||||
|
const functionName = node.declaration.id.name;
|
||||||
|
const isTopLevel = node.parent.type === 'Program';
|
||||||
|
if (isTopLevel && !restrictedFunctions.includes(node.declaration.id.name)) {
|
||||||
|
context.report({
|
||||||
|
node,
|
||||||
|
message: `Top-level function '${functionName}' is restricted in this file. Allowed functions are: ${restrictedFunctions.join(', ')}.`
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
};
|
||||||
+7
-4
@@ -4,7 +4,7 @@
|
|||||||
*--------------------------------------------------------------------------------------------*/
|
*--------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
import * as eslint from 'eslint';
|
import * as eslint from 'eslint';
|
||||||
import { TSESTree } from '@typescript-eslint/experimental-utils';
|
import { TSESTree } from '@typescript-eslint/utils';
|
||||||
|
|
||||||
const VALID_USES = new Set<TSESTree.AST_NODE_TYPES | undefined>([
|
const VALID_USES = new Set<TSESTree.AST_NODE_TYPES | undefined>([
|
||||||
TSESTree.AST_NODE_TYPES.AwaitExpression,
|
TSESTree.AST_NODE_TYPES.AwaitExpression,
|
||||||
@@ -12,21 +12,24 @@ const VALID_USES = new Set<TSESTree.AST_NODE_TYPES | undefined>([
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
export = new class MustUseResults implements eslint.Rule.RuleModule {
|
export = new class MustUseResults implements eslint.Rule.RuleModule {
|
||||||
|
readonly meta: eslint.Rule.RuleMetaData = {
|
||||||
|
schema: false
|
||||||
|
};
|
||||||
|
|
||||||
create(context: eslint.Rule.RuleContext): eslint.Rule.RuleListener {
|
create(context: eslint.Rule.RuleContext): eslint.Rule.RuleListener {
|
||||||
|
|
||||||
const config = <{ message: string, functions: string[] }[]>context.options[0];
|
const config = <{ message: string; functions: string[] }[]>context.options[0];
|
||||||
const listener: eslint.Rule.RuleListener = {};
|
const listener: eslint.Rule.RuleListener = {};
|
||||||
|
|
||||||
for (const { message, functions } of config) {
|
for (const { message, functions } of config) {
|
||||||
for (const fn of functions) {
|
for (const fn of functions) {
|
||||||
const query = `CallExpression[callee.property.name='${fn}'], CallExpression[callee.name='${fn}']`
|
const query = `CallExpression[callee.property.name='${fn}'], CallExpression[callee.name='${fn}']`;
|
||||||
listener[query] = (node: any) => {
|
listener[query] = (node: any) => {
|
||||||
const cast: TSESTree.CallExpression = node;
|
const cast: TSESTree.CallExpression = node;
|
||||||
if (!VALID_USES.has(cast.parent?.type)) {
|
if (!VALID_USES.has(cast.parent?.type)) {
|
||||||
context.report({ node, message });
|
context.report({ node, message });
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
+1
-1
@@ -14,7 +14,7 @@ export = new class NoAsyncSuite implements eslint.Rule.RuleModule {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const body = context.getSourceCode().getText(node)
|
const body = context.getSourceCode().getText(node);
|
||||||
|
|
||||||
if (body.includes('super.dispose')) {
|
if (body.includes('super.dispose')) {
|
||||||
return;
|
return;
|
||||||
+2
-2
@@ -4,7 +4,7 @@
|
|||||||
*--------------------------------------------------------------------------------------------*/
|
*--------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
import * as eslint from 'eslint';
|
import * as eslint from 'eslint';
|
||||||
import { TSESTree } from '@typescript-eslint/experimental-utils';
|
import { TSESTree } from '@typescript-eslint/utils';
|
||||||
|
|
||||||
export = new class NoDangerousTypeAssertions implements eslint.Rule.RuleModule {
|
export = new class NoDangerousTypeAssertions implements eslint.Rule.RuleModule {
|
||||||
|
|
||||||
@@ -32,7 +32,7 @@ export = new class NoDangerousTypeAssertions implements eslint.Rule.RuleModule {
|
|||||||
|
|
||||||
context.report({
|
context.report({
|
||||||
node,
|
node,
|
||||||
message: "Don't use type assertions for creating objects as this can hide type errors."
|
message: `Don't use type assertions for creating objects as this can hide type errors.`
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
+1
-1
@@ -25,6 +25,6 @@ export = new class NoGlobalDocumentListener implements eslint.Rule.RuleModule {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
+2
-1
@@ -10,7 +10,8 @@ export = new class ApiProviderNaming implements eslint.Rule.RuleModule {
|
|||||||
readonly meta: eslint.Rule.RuleMetaData = {
|
readonly meta: eslint.Rule.RuleMetaData = {
|
||||||
messages: {
|
messages: {
|
||||||
slow: 'Native private fields are much slower and should only be used when needed. Ignore this warning if you know what you are doing, use compile-time private otherwise. See https://github.com/microsoft/vscode/issues/185991#issuecomment-1614468158 for details',
|
slow: 'Native private fields are much slower and should only be used when needed. Ignore this warning if you know what you are doing, use compile-time private otherwise. See https://github.com/microsoft/vscode/issues/185991#issuecomment-1614468158 for details',
|
||||||
}
|
},
|
||||||
|
schema: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
create(context: eslint.Rule.RuleContext): eslint.Rule.RuleListener {
|
create(context: eslint.Rule.RuleContext): eslint.Rule.RuleListener {
|
||||||
+3
-2
@@ -12,7 +12,8 @@ export = new class NoNlsInStandaloneEditorRule implements eslint.Rule.RuleModule
|
|||||||
readonly meta: eslint.Rule.RuleMetaData = {
|
readonly meta: eslint.Rule.RuleMetaData = {
|
||||||
messages: {
|
messages: {
|
||||||
noNls: 'Not allowed to import vs/nls in standalone editor modules. Use standaloneStrings.ts'
|
noNls: 'Not allowed to import vs/nls in standalone editor modules. Use standaloneStrings.ts'
|
||||||
}
|
},
|
||||||
|
schema: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
create(context: eslint.Rule.RuleContext): eslint.Rule.RuleListener {
|
create(context: eslint.Rule.RuleContext): eslint.Rule.RuleListener {
|
||||||
@@ -23,7 +24,7 @@ export = new class NoNlsInStandaloneEditorRule implements eslint.Rule.RuleModule
|
|||||||
|| /vs(\/|\\)editor(\/|\\)common(\/|\\)standalone(\/|\\)/.test(fileName)
|
|| /vs(\/|\\)editor(\/|\\)common(\/|\\)standalone(\/|\\)/.test(fileName)
|
||||||
|| /vs(\/|\\)editor(\/|\\)editor.api/.test(fileName)
|
|| /vs(\/|\\)editor(\/|\\)editor.api/.test(fileName)
|
||||||
|| /vs(\/|\\)editor(\/|\\)editor.main/.test(fileName)
|
|| /vs(\/|\\)editor(\/|\\)editor.main/.test(fileName)
|
||||||
|| /vs(\/|\\)editor(\/|\\)editor.worker/.test(fileName)
|
|| /vs(\/|\\)editor(\/|\\)editor.worker.start/.test(fileName)
|
||||||
) {
|
) {
|
||||||
return createImportRuleListener((node, path) => {
|
return createImportRuleListener((node, path) => {
|
||||||
// resolve relative paths
|
// resolve relative paths
|
||||||
+4
-4
@@ -16,13 +16,13 @@ export = new class implements eslint.Rule.RuleModule {
|
|||||||
layerbreaker: 'You are only allowed to import {{import}} from here using `import type ...`.'
|
layerbreaker: 'You are only allowed to import {{import}} from here using `import type ...`.'
|
||||||
},
|
},
|
||||||
schema: {
|
schema: {
|
||||||
type: "array",
|
type: 'array',
|
||||||
items: {
|
items: {
|
||||||
type: "object",
|
type: 'object',
|
||||||
additionalProperties: {
|
additionalProperties: {
|
||||||
type: "array",
|
type: 'array',
|
||||||
items: {
|
items: {
|
||||||
type: "string"
|
type: 'string'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+3
-2
@@ -15,7 +15,8 @@ export = new class NoNlsInStandaloneEditorRule implements eslint.Rule.RuleModule
|
|||||||
},
|
},
|
||||||
docs: {
|
docs: {
|
||||||
url: 'https://github.com/microsoft/vscode/wiki/Source-Code-Organization'
|
url: 'https://github.com/microsoft/vscode/wiki/Source-Code-Organization'
|
||||||
}
|
},
|
||||||
|
schema: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
create(context: eslint.Rule.RuleContext): eslint.Rule.RuleListener {
|
create(context: eslint.Rule.RuleContext): eslint.Rule.RuleListener {
|
||||||
@@ -37,7 +38,7 @@ export = new class NoNlsInStandaloneEditorRule implements eslint.Rule.RuleModule
|
|||||||
|| /vs(\/|\\)editor(\/|\\)common(\/|\\)standalone(\/|\\)/.test(path)
|
|| /vs(\/|\\)editor(\/|\\)common(\/|\\)standalone(\/|\\)/.test(path)
|
||||||
|| /vs(\/|\\)editor(\/|\\)editor.api/.test(path)
|
|| /vs(\/|\\)editor(\/|\\)editor.api/.test(path)
|
||||||
|| /vs(\/|\\)editor(\/|\\)editor.main/.test(path)
|
|| /vs(\/|\\)editor(\/|\\)editor.main/.test(path)
|
||||||
|| /vs(\/|\\)editor(\/|\\)editor.worker/.test(path)
|
|| /vs(\/|\\)editor(\/|\\)editor.worker.start/.test(path)
|
||||||
) {
|
) {
|
||||||
context.report({
|
context.report({
|
||||||
loc: node.loc,
|
loc: node.loc,
|
||||||
+5
-5
@@ -4,7 +4,7 @@
|
|||||||
*--------------------------------------------------------------------------------------------*/
|
*--------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
import * as eslint from 'eslint';
|
import * as eslint from 'eslint';
|
||||||
import { TSESTree } from '@typescript-eslint/experimental-utils';
|
import { TSESTree } from '@typescript-eslint/utils';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* WORKAROUND for https://github.com/evanw/esbuild/issues/3823
|
* WORKAROUND for https://github.com/evanw/esbuild/issues/3823
|
||||||
@@ -15,7 +15,7 @@ export = new class implements eslint.Rule.RuleModule {
|
|||||||
|
|
||||||
function checkProperty(inNode: any) {
|
function checkProperty(inNode: any) {
|
||||||
|
|
||||||
const classDeclaration = context.getAncestors().find(node => node.type === 'ClassDeclaration');
|
const classDeclaration = context.sourceCode.getAncestors(inNode).find(node => node.type === 'ClassDeclaration');
|
||||||
const propertyDefinition = <TSESTree.PropertyDefinition>inNode;
|
const propertyDefinition = <TSESTree.PropertyDefinition>inNode;
|
||||||
|
|
||||||
if (!classDeclaration || !classDeclaration.id?.name) {
|
if (!classDeclaration || !classDeclaration.id?.name) {
|
||||||
@@ -26,19 +26,19 @@ export = new class implements eslint.Rule.RuleModule {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const classCtor = classDeclaration.body.body.find(node => node.type === 'MethodDefinition' && node.kind === 'constructor')
|
const classCtor = classDeclaration.body.body.find(node => node.type === 'MethodDefinition' && node.kind === 'constructor');
|
||||||
|
|
||||||
if (!classCtor) {
|
if (!classCtor) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const name = classDeclaration.id.name;
|
const name = classDeclaration.id.name;
|
||||||
const valueText = context.getSourceCode().getText(<any>propertyDefinition.value)
|
const valueText = context.sourceCode.getText(<any>propertyDefinition.value);
|
||||||
|
|
||||||
if (valueText.includes(name + '.')) {
|
if (valueText.includes(name + '.')) {
|
||||||
|
|
||||||
if (classCtor.value?.type === 'FunctionExpression' && !classCtor.value.params.find((param: any) => param.type === 'TSParameterProperty' && param.decorators?.length > 0)) {
|
if (classCtor.value?.type === 'FunctionExpression' && !classCtor.value.params.find((param: any) => param.type === 'TSParameterProperty' && param.decorators?.length > 0)) {
|
||||||
return
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
context.report({
|
context.report({
|
||||||
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||||
*--------------------------------------------------------------------------------------------*/
|
*--------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
import { TSESTree } from '@typescript-eslint/experimental-utils';
|
import { TSESTree } from '@typescript-eslint/utils';
|
||||||
import * as eslint from 'eslint';
|
import * as eslint from 'eslint';
|
||||||
|
|
||||||
function isCallExpression(node: TSESTree.Node): node is TSESTree.CallExpression {
|
function isCallExpression(node: TSESTree.Node): node is TSESTree.CallExpression {
|
||||||
+3
-2
@@ -4,7 +4,7 @@
|
|||||||
*--------------------------------------------------------------------------------------------*/
|
*--------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
import * as eslint from 'eslint';
|
import * as eslint from 'eslint';
|
||||||
import { TSESTree, AST_NODE_TYPES } from '@typescript-eslint/experimental-utils';
|
import { TSESTree, AST_NODE_TYPES } from '@typescript-eslint/utils';
|
||||||
|
|
||||||
function isStringLiteral(node: TSESTree.Node | null | undefined): node is TSESTree.StringLiteral {
|
function isStringLiteral(node: TSESTree.Node | null | undefined): node is TSESTree.StringLiteral {
|
||||||
return !!node && node.type === AST_NODE_TYPES.Literal && typeof node.value === 'string';
|
return !!node && node.type === AST_NODE_TYPES.Literal && typeof node.value === 'string';
|
||||||
@@ -24,7 +24,8 @@ export = new class NoUnexternalizedStrings implements eslint.Rule.RuleModule {
|
|||||||
badKey: 'The key \'{{key}}\' doesn\'t conform to a valid localize identifier.',
|
badKey: 'The key \'{{key}}\' doesn\'t conform to a valid localize identifier.',
|
||||||
duplicateKey: 'Duplicate key \'{{key}}\' with different message value.',
|
duplicateKey: 'Duplicate key \'{{key}}\' with different message value.',
|
||||||
badMessage: 'Message argument to \'{{message}}\' must be a string literal.'
|
badMessage: 'Message argument to \'{{message}}\' must be a string literal.'
|
||||||
}
|
},
|
||||||
|
schema: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
create(context: eslint.Rule.RuleContext): eslint.Rule.RuleListener {
|
create(context: eslint.Rule.RuleContext): eslint.Rule.RuleListener {
|
||||||
+6
-6
@@ -12,7 +12,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import * as eslint from 'eslint';
|
import * as eslint from 'eslint';
|
||||||
import { TSESTree } from '@typescript-eslint/experimental-utils';
|
import { TSESTree } from '@typescript-eslint/utils';
|
||||||
import * as ESTree from 'estree';
|
import * as ESTree from 'estree';
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
@@ -58,7 +58,7 @@ module.exports = {
|
|||||||
allowTernary = config.allowTernary || false,
|
allowTernary = config.allowTernary || false,
|
||||||
allowTaggedTemplates = config.allowTaggedTemplates || false;
|
allowTaggedTemplates = config.allowTaggedTemplates || false;
|
||||||
|
|
||||||
// eslint-disable-next-line jsdoc/require-description
|
|
||||||
/**
|
/**
|
||||||
* @param node any node
|
* @param node any node
|
||||||
* @returns whether the given node structurally represents a directive
|
* @returns whether the given node structurally represents a directive
|
||||||
@@ -68,7 +68,7 @@ module.exports = {
|
|||||||
node.expression.type === 'Literal' && typeof node.expression.value === 'string';
|
node.expression.type === 'Literal' && typeof node.expression.value === 'string';
|
||||||
}
|
}
|
||||||
|
|
||||||
// eslint-disable-next-line jsdoc/require-description
|
|
||||||
/**
|
/**
|
||||||
* @param predicate ([a] -> Boolean) the function used to make the determination
|
* @param predicate ([a] -> Boolean) the function used to make the determination
|
||||||
* @param list the input list
|
* @param list the input list
|
||||||
@@ -83,7 +83,7 @@ module.exports = {
|
|||||||
return list.slice();
|
return list.slice();
|
||||||
}
|
}
|
||||||
|
|
||||||
// eslint-disable-next-line jsdoc/require-description
|
|
||||||
/**
|
/**
|
||||||
* @param node a Program or BlockStatement node
|
* @param node a Program or BlockStatement node
|
||||||
* @returns the leading sequence of directive nodes in the given node's body
|
* @returns the leading sequence of directive nodes in the given node's body
|
||||||
@@ -92,7 +92,7 @@ module.exports = {
|
|||||||
return takeWhile(looksLikeDirective, node.body);
|
return takeWhile(looksLikeDirective, node.body);
|
||||||
}
|
}
|
||||||
|
|
||||||
// eslint-disable-next-line jsdoc/require-description
|
|
||||||
/**
|
/**
|
||||||
* @param node any node
|
* @param node any node
|
||||||
* @param ancestors the given node's ancestors
|
* @param ancestors the given node's ancestors
|
||||||
@@ -141,7 +141,7 @@ module.exports = {
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
ExpressionStatement(node: TSESTree.ExpressionStatement) {
|
ExpressionStatement(node: TSESTree.ExpressionStatement) {
|
||||||
if (!isValidExpression(node.expression) && !isDirective(node, <TSESTree.Node[]>context.getAncestors())) {
|
if (!isValidExpression(node.expression) && !isDirective(node, <TSESTree.Node[]>context.sourceCode.getAncestors(node))) {
|
||||||
context.report({ node: <ESTree.Node>node, message: `Expected an assignment or function call and instead saw an expression. ${node.expression}` });
|
context.report({ node: <ESTree.Node>node, message: `Expected an assignment or function call and instead saw an expression. ${node.expression}` });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+1
-1
@@ -4,7 +4,7 @@
|
|||||||
*--------------------------------------------------------------------------------------------*/
|
*--------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
import * as eslint from 'eslint';
|
import * as eslint from 'eslint';
|
||||||
import { TSESTree } from '@typescript-eslint/experimental-utils';
|
import { TSESTree } from '@typescript-eslint/utils';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enforces that all parameter properties have an explicit access modifier (public, protected, private).
|
* Enforces that all parameter properties have an explicit access modifier (public, protected, private).
|
||||||
+3
-2
@@ -4,7 +4,7 @@
|
|||||||
*--------------------------------------------------------------------------------------------*/
|
*--------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
import * as eslint from 'eslint';
|
import * as eslint from 'eslint';
|
||||||
import { TSESTree } from '@typescript-eslint/experimental-utils';
|
import { TSESTree } from '@typescript-eslint/utils';
|
||||||
import { readFileSync } from 'fs';
|
import { readFileSync } from 'fs';
|
||||||
import { createImportRuleListener } from './utils';
|
import { createImportRuleListener } from './utils';
|
||||||
|
|
||||||
@@ -16,7 +16,8 @@ export = new class TranslationRemind implements eslint.Rule.RuleModule {
|
|||||||
readonly meta: eslint.Rule.RuleMetaData = {
|
readonly meta: eslint.Rule.RuleMetaData = {
|
||||||
messages: {
|
messages: {
|
||||||
missing: 'Please add \'{{resource}}\' to ./build/lib/i18n.resources.json file to use translations here.'
|
missing: 'Please add \'{{resource}}\' to ./build/lib/i18n.resources.json file to use translations here.'
|
||||||
}
|
},
|
||||||
|
schema: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
create(context: eslint.Rule.RuleContext): eslint.Rule.RuleListener {
|
create(context: eslint.Rule.RuleContext): eslint.Rule.RuleListener {
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
/*---------------------------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||||
|
*--------------------------------------------------------------------------------------------*/
|
||||||
|
const glob = require('glob');
|
||||||
|
const path = require('path');
|
||||||
|
|
||||||
|
require('ts-node').register({ experimentalResolver: true, transpileOnly: true });
|
||||||
|
|
||||||
|
// Re-export all .ts files as rules
|
||||||
|
const rules = {};
|
||||||
|
glob.sync(`${__dirname}/*.ts`).forEach((file) => {
|
||||||
|
rules[path.basename(file, '.ts')] = require(file);
|
||||||
|
});
|
||||||
|
|
||||||
|
exports.rules = rules;
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"type": "commonjs"
|
||||||
|
}
|
||||||
@@ -4,7 +4,7 @@
|
|||||||
*--------------------------------------------------------------------------------------------*/
|
*--------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
import * as eslint from 'eslint';
|
import * as eslint from 'eslint';
|
||||||
import { TSESTree } from '@typescript-eslint/experimental-utils';
|
import { TSESTree } from '@typescript-eslint/utils';
|
||||||
|
|
||||||
export function createImportRuleListener(validateImport: (node: TSESTree.Literal, value: string) => any): eslint.Rule.RuleListener {
|
export function createImportRuleListener(validateImport: (node: TSESTree.Literal, value: string) => any): eslint.Rule.RuleListener {
|
||||||
|
|
||||||
+3
-2
@@ -4,14 +4,15 @@
|
|||||||
*--------------------------------------------------------------------------------------------*/
|
*--------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
import * as eslint from 'eslint';
|
import * as eslint from 'eslint';
|
||||||
import { AST_NODE_TYPES, TSESTree } from '@typescript-eslint/experimental-utils';
|
import { AST_NODE_TYPES, TSESTree } from '@typescript-eslint/utils';
|
||||||
|
|
||||||
export = new class ApiProviderNaming implements eslint.Rule.RuleModule {
|
export = new class ApiProviderNaming implements eslint.Rule.RuleModule {
|
||||||
|
|
||||||
readonly meta: eslint.Rule.RuleMetaData = {
|
readonly meta: eslint.Rule.RuleMetaData = {
|
||||||
messages: {
|
messages: {
|
||||||
noToken: 'Function lacks a cancellation token, preferable as last argument',
|
noToken: 'Function lacks a cancellation token, preferable as last argument',
|
||||||
}
|
},
|
||||||
|
schema: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
create(context: eslint.Rule.RuleContext): eslint.Rule.RuleListener {
|
create(context: eslint.Rule.RuleContext): eslint.Rule.RuleListener {
|
||||||
+3
-2
@@ -4,13 +4,14 @@
|
|||||||
*--------------------------------------------------------------------------------------------*/
|
*--------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
import * as eslint from 'eslint';
|
import * as eslint from 'eslint';
|
||||||
import { TSESTree, AST_NODE_TYPES } from '@typescript-eslint/experimental-utils';
|
import { TSESTree, AST_NODE_TYPES } from '@typescript-eslint/utils';
|
||||||
|
|
||||||
export = new class ApiLiteralOrTypes implements eslint.Rule.RuleModule {
|
export = new class ApiLiteralOrTypes implements eslint.Rule.RuleModule {
|
||||||
|
|
||||||
readonly meta: eslint.Rule.RuleMetaData = {
|
readonly meta: eslint.Rule.RuleMetaData = {
|
||||||
docs: { url: 'https://github.com/microsoft/vscode/wiki/Extension-API-guidelines#creating-objects' },
|
docs: { url: 'https://github.com/microsoft/vscode/wiki/Extension-API-guidelines#creating-objects' },
|
||||||
messages: { sync: '`createXYZ`-functions are constructor-replacements and therefore must return sync', }
|
messages: { sync: '`createXYZ`-functions are constructor-replacements and therefore must return sync', },
|
||||||
|
schema: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
create(context: eslint.Rule.RuleContext): eslint.Rule.RuleListener {
|
create(context: eslint.Rule.RuleContext): eslint.Rule.RuleListener {
|
||||||
+3
-2
@@ -4,7 +4,7 @@
|
|||||||
*--------------------------------------------------------------------------------------------*/
|
*--------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
import * as eslint from 'eslint';
|
import * as eslint from 'eslint';
|
||||||
import { TSESTree, AST_NODE_TYPES } from '@typescript-eslint/experimental-utils';
|
import { TSESTree, AST_NODE_TYPES } from '@typescript-eslint/utils';
|
||||||
|
|
||||||
export = new class ApiEventNaming implements eslint.Rule.RuleModule {
|
export = new class ApiEventNaming implements eslint.Rule.RuleModule {
|
||||||
|
|
||||||
@@ -19,7 +19,8 @@ export = new class ApiEventNaming implements eslint.Rule.RuleModule {
|
|||||||
verb: 'Unknown verb \'{{verb}}\' - is this really a verb? Iff so, then add this verb to the configuration',
|
verb: 'Unknown verb \'{{verb}}\' - is this really a verb? Iff so, then add this verb to the configuration',
|
||||||
subject: 'Unknown subject \'{{subject}}\' - This subject has not been used before but it should refer to something in the API',
|
subject: 'Unknown subject \'{{subject}}\' - This subject has not been used before but it should refer to something in the API',
|
||||||
unknown: 'UNKNOWN event declaration, lint-rule needs tweaking'
|
unknown: 'UNKNOWN event declaration, lint-rule needs tweaking'
|
||||||
}
|
},
|
||||||
|
schema: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
create(context: eslint.Rule.RuleContext): eslint.Rule.RuleListener {
|
create(context: eslint.Rule.RuleContext): eslint.Rule.RuleListener {
|
||||||
+3
-2
@@ -4,7 +4,7 @@
|
|||||||
*--------------------------------------------------------------------------------------------*/
|
*--------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
import * as eslint from 'eslint';
|
import * as eslint from 'eslint';
|
||||||
import { TSESTree } from '@typescript-eslint/experimental-utils';
|
import { TSESTree } from '@typescript-eslint/utils';
|
||||||
|
|
||||||
export = new class ApiInterfaceNaming implements eslint.Rule.RuleModule {
|
export = new class ApiInterfaceNaming implements eslint.Rule.RuleModule {
|
||||||
|
|
||||||
@@ -13,7 +13,8 @@ export = new class ApiInterfaceNaming implements eslint.Rule.RuleModule {
|
|||||||
readonly meta: eslint.Rule.RuleMetaData = {
|
readonly meta: eslint.Rule.RuleMetaData = {
|
||||||
messages: {
|
messages: {
|
||||||
naming: 'Interfaces must not be prefixed with uppercase `I`',
|
naming: 'Interfaces must not be prefixed with uppercase `I`',
|
||||||
}
|
},
|
||||||
|
schema: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
create(context: eslint.Rule.RuleContext): eslint.Rule.RuleListener {
|
create(context: eslint.Rule.RuleContext): eslint.Rule.RuleListener {
|
||||||
+3
-2
@@ -4,13 +4,14 @@
|
|||||||
*--------------------------------------------------------------------------------------------*/
|
*--------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
import * as eslint from 'eslint';
|
import * as eslint from 'eslint';
|
||||||
import { TSESTree } from '@typescript-eslint/experimental-utils';
|
import { TSESTree } from '@typescript-eslint/utils';
|
||||||
|
|
||||||
export = new class ApiLiteralOrTypes implements eslint.Rule.RuleModule {
|
export = new class ApiLiteralOrTypes implements eslint.Rule.RuleModule {
|
||||||
|
|
||||||
readonly meta: eslint.Rule.RuleMetaData = {
|
readonly meta: eslint.Rule.RuleMetaData = {
|
||||||
docs: { url: 'https://github.com/microsoft/vscode/wiki/Extension-API-guidelines#enums' },
|
docs: { url: 'https://github.com/microsoft/vscode/wiki/Extension-API-guidelines#enums' },
|
||||||
messages: { useEnum: 'Use enums, not literal-or-types', }
|
messages: { useEnum: 'Use enums, not literal-or-types', },
|
||||||
|
schema: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
create(context: eslint.Rule.RuleContext): eslint.Rule.RuleListener {
|
create(context: eslint.Rule.RuleContext): eslint.Rule.RuleListener {
|
||||||
+3
-2
@@ -4,14 +4,15 @@
|
|||||||
*--------------------------------------------------------------------------------------------*/
|
*--------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
import * as eslint from 'eslint';
|
import * as eslint from 'eslint';
|
||||||
import { TSESTree } from '@typescript-eslint/experimental-utils';
|
import { TSESTree } from '@typescript-eslint/utils';
|
||||||
|
|
||||||
export = new class ApiProviderNaming implements eslint.Rule.RuleModule {
|
export = new class ApiProviderNaming implements eslint.Rule.RuleModule {
|
||||||
|
|
||||||
readonly meta: eslint.Rule.RuleMetaData = {
|
readonly meta: eslint.Rule.RuleMetaData = {
|
||||||
messages: {
|
messages: {
|
||||||
naming: 'A provider should only have functions like provideXYZ or resolveXYZ',
|
naming: 'A provider should only have functions like provideXYZ or resolveXYZ',
|
||||||
}
|
},
|
||||||
|
schema: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
private static _providerFunctionNames = /^(provide|resolve|prepare).+/;
|
private static _providerFunctionNames = /^(provide|resolve|prepare).+/;
|
||||||
+7
-7
@@ -4,22 +4,22 @@
|
|||||||
*--------------------------------------------------------------------------------------------*/
|
*--------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
import * as eslint from 'eslint';
|
import * as eslint from 'eslint';
|
||||||
import { TSESTree } from '@typescript-eslint/experimental-utils';
|
import { TSESTree } from '@typescript-eslint/utils';
|
||||||
|
|
||||||
export = new class ApiTypeDiscrimination implements eslint.Rule.RuleModule {
|
export = new class ApiTypeDiscrimination implements eslint.Rule.RuleModule {
|
||||||
|
|
||||||
readonly meta: eslint.Rule.RuleMetaData = {
|
readonly meta: eslint.Rule.RuleMetaData = {
|
||||||
docs: { url: 'https://github.com/microsoft/vscode/wiki/Extension-API-guidelines' },
|
docs: { url: 'https://github.com/microsoft/vscode/wiki/Extension-API-guidelines' },
|
||||||
messages: {
|
messages: {
|
||||||
noTypeDiscrimination: 'Do not use type descrimination properties'
|
noTypeDiscrimination: 'Do not use type discrimination properties'
|
||||||
}
|
},
|
||||||
|
schema: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
create(context: eslint.Rule.RuleContext): eslint.Rule.RuleListener {
|
create(context: eslint.Rule.RuleContext): eslint.Rule.RuleListener {
|
||||||
return {
|
return {
|
||||||
['TSPropertySignature[optional=undefined] TSTypeAnnotation TSLiteralType Literal']: (node: any) => {
|
['TSPropertySignature[optional=false] TSTypeAnnotation TSLiteralType Literal']: (node: any) => {
|
||||||
|
const raw = String((<TSESTree.Literal>node).raw);
|
||||||
const raw = String((<TSESTree.Literal>node).raw)
|
|
||||||
|
|
||||||
if (/^('|").*\1$/.test(raw)) {
|
if (/^('|").*\1$/.test(raw)) {
|
||||||
|
|
||||||
@@ -29,6 +29,6 @@ export = new class ApiTypeDiscrimination implements eslint.Rule.RuleModule {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
/*---------------------------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||||
|
*--------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
import { TSESTree } from '@typescript-eslint/utils';
|
||||||
|
import * as eslint from 'eslint';
|
||||||
|
|
||||||
|
export = new class VscodeDtsUseExport implements eslint.Rule.RuleModule {
|
||||||
|
|
||||||
|
readonly meta: eslint.Rule.RuleMetaData = {
|
||||||
|
messages: {
|
||||||
|
useExport: `Public api types must use 'export'`,
|
||||||
|
},
|
||||||
|
schema: false,
|
||||||
|
};
|
||||||
|
|
||||||
|
create(context: eslint.Rule.RuleContext): eslint.Rule.RuleListener {
|
||||||
|
return {
|
||||||
|
['TSModuleDeclaration :matches(TSInterfaceDeclaration, ClassDeclaration, VariableDeclaration, TSEnumDeclaration, TSTypeAliasDeclaration)']: (node: any) => {
|
||||||
|
const parent = (<TSESTree.Node>node).parent;
|
||||||
|
if (parent && parent.type !== TSESTree.AST_NODE_TYPES.ExportNamedDeclaration) {
|
||||||
|
context.report({
|
||||||
|
node,
|
||||||
|
messageId: 'useExport'
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
+2
-1
@@ -10,7 +10,8 @@ export = new class ApiEventNaming implements eslint.Rule.RuleModule {
|
|||||||
readonly meta: eslint.Rule.RuleMetaData = {
|
readonly meta: eslint.Rule.RuleMetaData = {
|
||||||
messages: {
|
messages: {
|
||||||
usage: 'Use the Thenable-type instead of the Promise type',
|
usage: 'Use the Thenable-type instead of the Promise type',
|
||||||
}
|
},
|
||||||
|
schema: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
create(context: eslint.Rule.RuleContext): eslint.Rule.RuleListener {
|
create(context: eslint.Rule.RuleContext): eslint.Rule.RuleListener {
|
||||||
+2
-1
@@ -11,7 +11,8 @@ export = new class ApiVsCodeInComments implements eslint.Rule.RuleModule {
|
|||||||
readonly meta: eslint.Rule.RuleMetaData = {
|
readonly meta: eslint.Rule.RuleMetaData = {
|
||||||
messages: {
|
messages: {
|
||||||
comment: `Don't use the term 'vs code' in comments`
|
comment: `Don't use the term 'vs code' in comments`
|
||||||
}
|
},
|
||||||
|
schema: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
create(context: eslint.Rule.RuleContext): eslint.Rule.RuleListener {
|
create(context: eslint.Rule.RuleContext): eslint.Rule.RuleListener {
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
const glob = require('glob');
|
|
||||||
const path = require('path');
|
|
||||||
|
|
||||||
require('ts-node').register({ experimentalResolver: true, transpileOnly: true });
|
|
||||||
|
|
||||||
// Re-export all .ts files as rules
|
|
||||||
const rules = {};
|
|
||||||
glob.sync(`${__dirname}/*.ts`).forEach((file) => {
|
|
||||||
rules[path.basename(file, '.ts')] = require(file);
|
|
||||||
});
|
|
||||||
|
|
||||||
exports.rules = rules;
|
|
||||||
@@ -1,39 +0,0 @@
|
|||||||
/*---------------------------------------------------------------------------------------------
|
|
||||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
||||||
*--------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
import * as eslint from 'eslint';
|
|
||||||
|
|
||||||
export = new class ApiEventNaming implements eslint.Rule.RuleModule {
|
|
||||||
|
|
||||||
readonly meta: eslint.Rule.RuleMetaData = {
|
|
||||||
messages: {
|
|
||||||
comment: 'region comments should start with a camel case identifier, `:`, then either a GH issue link or owner, e.g #region myProposalName: https://github.com/microsoft/vscode/issues/<number>',
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
create(context: eslint.Rule.RuleContext): eslint.Rule.RuleListener {
|
|
||||||
|
|
||||||
const sourceCode = context.getSourceCode();
|
|
||||||
|
|
||||||
return {
|
|
||||||
['Program']: (_node: any) => {
|
|
||||||
for (const comment of sourceCode.getAllComments()) {
|
|
||||||
if (comment.type !== 'Line') {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
if (!/^\s*#region /.test(comment.value)) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
if (!/^\s*#region ([a-z]+): (@[a-z]+|https:\/\/github.com\/microsoft\/vscode\/issues\/\d+)/i.test(comment.value)) {
|
|
||||||
context.report({
|
|
||||||
node: <any>comment,
|
|
||||||
messageId: 'comment',
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
};
|
|
||||||
-1230
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1 @@
|
|||||||
|
blank_issues_enabled: false
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
name: Issue
|
||||||
|
about: Submit an Issue to Void
|
||||||
|
title: For VSCode-related issues (eg builds), please start the title with `[App]`. Otherwise, start it with `[Bug]` or `[Feature]`.
|
||||||
|
---
|
||||||
|
|
||||||
|
1. Press `Cmd+Shift+P` in Void, and type `Help: About`. Please paste the information here. Also let us know any other relevant details, like the model and provider you're using if applicable.
|
||||||
|
|
||||||
|
2. Describe the issue/feature here!
|
||||||
@@ -0,0 +1,164 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
from __future__ import annotations
|
||||||
|
import os, sys, json, datetime, pathlib, textwrap, requests
|
||||||
|
from openai import OpenAI
|
||||||
|
|
||||||
|
REPO = "voideditor/void"
|
||||||
|
CACHE_FILE = pathlib.Path(".github/triage_cache.json")
|
||||||
|
STAMP_FILE = pathlib.Path(".github/last_triage.txt")
|
||||||
|
|
||||||
|
THEMES_MD = textwrap.dedent("""\
|
||||||
|
1. 🔗 LLM Integration & Provider Support
|
||||||
|
2. 🖥 App Build & Platform Compatibility
|
||||||
|
3. 🎯 Prompt, Token, and Cost Management
|
||||||
|
4. 🧩 Editor UX & Interaction Design
|
||||||
|
5. 🤖 Agent & Automation Features
|
||||||
|
6. ⚙️ System Config & Environment Setup
|
||||||
|
7. 🗃 Meta: Feature Comparison, Structure, and Naming
|
||||||
|
""").strip()
|
||||||
|
|
||||||
|
client = OpenAI(api_key=os.environ["OPENAI_API_KEY"])
|
||||||
|
headers = {"Authorization": f"Bearer {os.environ['GITHUB_TOKEN']}"}
|
||||||
|
|
||||||
|
|
||||||
|
# ───────── helpers ────────────────────────────────────────────────────────
|
||||||
|
def utc_iso_now() -> str:
|
||||||
|
return datetime.datetime.utcnow().replace(microsecond=0, tzinfo=datetime.timezone.utc).isoformat()
|
||||||
|
|
||||||
|
def read_stamp() -> str:
|
||||||
|
return STAMP_FILE.read_text().strip() if STAMP_FILE.exists() else "1970-01-01T00:00:00Z"
|
||||||
|
|
||||||
|
def save_stamp():
|
||||||
|
STAMP_FILE.parent.mkdir(parents=True, exist_ok=True)
|
||||||
|
STAMP_FILE.write_text(utc_iso_now())
|
||||||
|
|
||||||
|
def load_cache() -> dict[int, str]:
|
||||||
|
return json.loads(CACHE_FILE.read_text()) if CACHE_FILE.exists() else {}
|
||||||
|
|
||||||
|
def save_cache(d: dict[int, str]):
|
||||||
|
CACHE_FILE.parent.mkdir(parents=True, exist_ok=True)
|
||||||
|
CACHE_FILE.write_text(json.dumps(d, indent=2))
|
||||||
|
|
||||||
|
def fetch_open_issues(since_iso: str | None = None) -> list[dict]:
|
||||||
|
issues, page = [], 1
|
||||||
|
while True:
|
||||||
|
url = (
|
||||||
|
f"https://api.github.com/repos/{REPO}/issues"
|
||||||
|
f"?state=open&per_page=100&page={page}"
|
||||||
|
+ (f"&since={since_iso}" if since_iso else "")
|
||||||
|
)
|
||||||
|
chunk = requests.get(url, headers=headers).json()
|
||||||
|
if not chunk or (isinstance(chunk, dict) and chunk.get("message")):
|
||||||
|
break
|
||||||
|
issues.extend(i for i in chunk if "pull_request" not in i)
|
||||||
|
page += 1
|
||||||
|
return issues
|
||||||
|
|
||||||
|
|
||||||
|
# ───────── main ───────────────────────────────────────────────────────────
|
||||||
|
last_stamp = read_stamp()
|
||||||
|
changed = fetch_open_issues(since_iso=last_stamp)
|
||||||
|
|
||||||
|
# Fallback if **nothing** changed AND we have *no* existing output
|
||||||
|
if not changed:
|
||||||
|
cache_exists = CACHE_FILE.exists()
|
||||||
|
wiki_exists = pathlib.Path("wiki/Issue-Categories.md").exists()
|
||||||
|
if not cache_exists or not wiki_exists:
|
||||||
|
# first run or someone wiped the wiki → build from scratch
|
||||||
|
print("⏩ First run or empty wiki — fetching ALL open issues.", file=sys.stderr)
|
||||||
|
changed = fetch_open_issues() # full list
|
||||||
|
else:
|
||||||
|
print(f"✅ No issues updated since {last_stamp}. Nothing to classify.", file=sys.stderr)
|
||||||
|
save_stamp()
|
||||||
|
sys.exit(0)
|
||||||
|
|
||||||
|
# ---------------------------------------------------------------- prompt
|
||||||
|
issue_lines = "\n".join(f"- {i['title']} ({i['html_url']})" for i in changed)
|
||||||
|
prompt = textwrap.dedent(f"""\
|
||||||
|
You are an AI assistant helping triage GitHub issues into exactly 7 predefined themes.
|
||||||
|
|
||||||
|
Each issue must go into exactly one of the themes below:
|
||||||
|
|
||||||
|
{THEMES_MD}
|
||||||
|
|
||||||
|
Format your output in Markdown like:
|
||||||
|
## 🎯 Prompt, Token, and Cost Management
|
||||||
|
- [#123](https://github.com/org/repo/issues/123) – Title here
|
||||||
|
|
||||||
|
Classify these issues:
|
||||||
|
{issue_lines}
|
||||||
|
""")
|
||||||
|
|
||||||
|
resp = client.chat.completions.create(
|
||||||
|
model="gpt-4.1",
|
||||||
|
messages=[{"role": "user", "content": prompt}],
|
||||||
|
temperature=0.2,
|
||||||
|
)
|
||||||
|
|
||||||
|
md = resp.choices[0].message.content
|
||||||
|
|
||||||
|
# ---------------------------------------------------------------- parse GPT
|
||||||
|
new_map: dict[int, str] = {}
|
||||||
|
current = None
|
||||||
|
for ln in md.splitlines():
|
||||||
|
if ln.startswith("##"):
|
||||||
|
current = ln.lstrip("# ").strip()
|
||||||
|
elif ln.lstrip().startswith("- [#"):
|
||||||
|
try:
|
||||||
|
num = int(ln.split("[#")[1].split("]")[0])
|
||||||
|
new_map[num] = current
|
||||||
|
except Exception:
|
||||||
|
pass # ignore malformed lines
|
||||||
|
|
||||||
|
cache = load_cache()
|
||||||
|
cache.update(new_map)
|
||||||
|
save_cache(cache)
|
||||||
|
save_stamp()
|
||||||
|
|
||||||
|
# ---------------------------------------------------------------- rebuild wiki
|
||||||
|
order = [
|
||||||
|
"🔗 LLM Integration & Provider Support",
|
||||||
|
"🖥 App Build & Platform Compatibility",
|
||||||
|
"🎯 Prompt, Token, and Cost Management",
|
||||||
|
"🧩 Editor UX & Interaction Design",
|
||||||
|
"🤖 Agent & Automation Features",
|
||||||
|
"⚙️ System Config & Environment Setup",
|
||||||
|
"🗃 Meta: Feature Comparison, Structure, and Naming",
|
||||||
|
]
|
||||||
|
|
||||||
|
sections: dict[str, list[int]] = {t: [] for t in order}
|
||||||
|
|
||||||
|
# ── fetch ALL current open issues once (PRs filtered out) ────────────────
|
||||||
|
title_map: dict[int, tuple[str, str]] = {}
|
||||||
|
open_now: set[int] = set()
|
||||||
|
|
||||||
|
page = 1
|
||||||
|
while True:
|
||||||
|
batch = fetch_open_issues(since_iso=None) if page == 1 else []
|
||||||
|
if not batch:
|
||||||
|
break
|
||||||
|
for it in batch:
|
||||||
|
num = it["number"]
|
||||||
|
title_map[num] = (it["title"], it["html_url"])
|
||||||
|
open_now.add(num)
|
||||||
|
page += 1
|
||||||
|
|
||||||
|
# 🧹 drop any cached IDs that are no longer open issues (e.g., became a PR or were closed)
|
||||||
|
for stale in set(cache) - open_now:
|
||||||
|
del cache[stale]
|
||||||
|
save_cache(cache) # persist cleaned cache
|
||||||
|
|
||||||
|
# build sections from cleaned cache
|
||||||
|
for num, theme in cache.items():
|
||||||
|
if theme in sections: # extra safety
|
||||||
|
sections[theme].append(num)
|
||||||
|
|
||||||
|
# ---------------------------------------------------------------- print roadmap
|
||||||
|
for theme in order:
|
||||||
|
issues = sections[theme]
|
||||||
|
if issues:
|
||||||
|
print(f"## {theme}")
|
||||||
|
for n in sorted(issues):
|
||||||
|
title, url = title_map.get(n, ("(missing)", f"https://github.com/{REPO}/issues/{n}"))
|
||||||
|
print(f"- [#{n}]({url}) – {title}")
|
||||||
|
print()
|
||||||
@@ -0,0 +1,60 @@
|
|||||||
|
name: Issue Triage to Wiki
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 */6 * * *' # every 6 hrs (UTC)
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
roadmap:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
# 1️⃣ Check out code (so the script and cache files are present)
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 1 # shallow clone
|
||||||
|
|
||||||
|
# 2️⃣ Set up Python
|
||||||
|
- name: Set up Python
|
||||||
|
uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: '3.11'
|
||||||
|
|
||||||
|
# 3️⃣ Install dependencies
|
||||||
|
- name: Install Python dependencies
|
||||||
|
run: |
|
||||||
|
pip install openai requests
|
||||||
|
|
||||||
|
# 4️⃣ Clone your fork’s Wiki
|
||||||
|
- name: Clone your fork's Wiki
|
||||||
|
run: |
|
||||||
|
git clone https://x-access-token:${{ secrets.WIKI_TOKEN }}@github.com/${{ github.repository }}.wiki.git wiki
|
||||||
|
|
||||||
|
# 5️⃣ (Optional) Show repo tree for debugging
|
||||||
|
- name: Show repo tree (debug)
|
||||||
|
run: |
|
||||||
|
echo "PWD: $(pwd)"
|
||||||
|
ls -al
|
||||||
|
ls -al .github/scripts || true
|
||||||
|
ls -al void/.github/scripts || true
|
||||||
|
|
||||||
|
# 6️⃣ Generate roadmap and push only if it changed
|
||||||
|
- name: Generate roadmap directly into wiki
|
||||||
|
run: |
|
||||||
|
python .github/scripts/issue_triage.py > wiki/_new.md
|
||||||
|
if ! cmp -s wiki/_new.md wiki/Issue-Categories.md ; then
|
||||||
|
mv wiki/_new.md wiki/Issue-Categories.md
|
||||||
|
cd wiki
|
||||||
|
git config user.name "github-actions[bot]"
|
||||||
|
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||||
|
git add Issue-Categories.md
|
||||||
|
git commit -m "Auto-update Issue-Categories.md from GPT triage"
|
||||||
|
git push
|
||||||
|
else
|
||||||
|
echo "No content change – skipping wiki update"
|
||||||
|
fi
|
||||||
|
env:
|
||||||
|
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
||||||
|
GITHUB_TOKEN: ${{ secrets.WIKI_TOKEN }}
|
||||||
@@ -21,5 +21,10 @@ vscode.db
|
|||||||
product.overrides.json
|
product.overrides.json
|
||||||
*.snap.actual
|
*.snap.actual
|
||||||
.vscode-test
|
.vscode-test
|
||||||
|
|
||||||
|
# Void added these:
|
||||||
.tmp/
|
.tmp/
|
||||||
|
.tmp2/
|
||||||
.tool-versions
|
.tool-versions
|
||||||
|
src/vs/workbench/contrib/void/browser/react/out/**
|
||||||
|
src/vs/workbench/contrib/void/browser/react/src2/**
|
||||||
|
|||||||
+48
-48
@@ -1,48 +1,48 @@
|
|||||||
# Created for Void
|
# Created for Void
|
||||||
# To learn more about how to use Nix to configure your environment
|
# To learn more about how to use Nix to configure your environment
|
||||||
# see: https://developers.google.com/idx/guides/customize-idx-env
|
# see: https://developers.google.com/idx/guides/customize-idx-env
|
||||||
{pkgs}: {
|
{pkgs}: {
|
||||||
# Which nixpkgs channel to use.
|
# Which nixpkgs channel to use.
|
||||||
channel = "stable-23.11"; # or "unstable"
|
channel = "stable-23.11"; # or "unstable"
|
||||||
# Use https://search.nixos.org/packages to find packages
|
# Use https://search.nixos.org/packages to find packages
|
||||||
packages = [
|
packages = [
|
||||||
pkgs.nodejs_20
|
pkgs.nodejs_20
|
||||||
pkgs.yarn
|
pkgs.yarn
|
||||||
pkgs.nodePackages.pnpm
|
pkgs.nodePackages.pnpm
|
||||||
pkgs.bun
|
pkgs.bun
|
||||||
pkgs.gh
|
pkgs.gh
|
||||||
];
|
];
|
||||||
# Sets environment variables in the workspace
|
# Sets environment variables in the workspace
|
||||||
env = {};
|
env = {};
|
||||||
idx = {
|
idx = {
|
||||||
# Search for the extensions you want on https://open-vsx.org/ and use "publisher.id"
|
# Search for the extensions you want on https://open-vsx.org/ and use "publisher.id"
|
||||||
extensions = [
|
extensions = [
|
||||||
# "vscodevim.vim"
|
# "vscodevim.vim"
|
||||||
];
|
];
|
||||||
workspace = {
|
workspace = {
|
||||||
# Runs when a workspace is first created with this `dev.nix` file
|
# Runs when a workspace is first created with this `dev.nix` file
|
||||||
onCreate = {
|
onCreate = {
|
||||||
npm-install = "npm ci --no-audit --prefer-offline --no-progress --timing";
|
npm-install = "npm ci --no-audit --prefer-offline --no-progress --timing";
|
||||||
# Open editors for the following files by default, if they exist:
|
# Open editors for the following files by default, if they exist:
|
||||||
default.openFiles = [
|
default.openFiles = [
|
||||||
# Cover all the variations of language, src-dir, router (app/pages)
|
# Cover all the variations of language, src-dir, router (app/pages)
|
||||||
"pages/index.tsx" "pages/index.jsx"
|
"pages/index.tsx" "pages/index.jsx"
|
||||||
"src/pages/index.tsx" "src/pages/index.jsx"
|
"src/pages/index.tsx" "src/pages/index.jsx"
|
||||||
"app/page.tsx" "app/page.jsx"
|
"app/page.tsx" "app/page.jsx"
|
||||||
"src/app/page.tsx" "src/app/page.jsx"
|
"src/app/page.tsx" "src/app/page.jsx"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
# To run something each time the workspace is (re)started, use the `onStart` hook
|
# To run something each time the workspace is (re)started, use the `onStart` hook
|
||||||
};
|
};
|
||||||
# Enable previews and customize configuration
|
# Enable previews and customize configuration
|
||||||
previews = {
|
previews = {
|
||||||
enable = true;
|
enable = true;
|
||||||
previews = {
|
previews = {
|
||||||
web = {
|
web = {
|
||||||
command = ["npm" "run" "dev" "--" "--port" "$PORT" "--hostname" "0.0.0.0"];
|
command = ["npm" "run" "dev" "--" "--port" "$PORT" "--hostname" "0.0.0.0"];
|
||||||
manager = "web";
|
manager = "web";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
disturl="https://electronjs.org/headers"
|
disturl="https://electronjs.org/headers"
|
||||||
target="30.5.1"
|
target="34.3.2"
|
||||||
ms_build_id="10262041"
|
ms_build_id="11161073"
|
||||||
runtime="electron"
|
runtime="electron"
|
||||||
build_from_source="true"
|
build_from_source="true"
|
||||||
legacy-peer-deps="true"
|
legacy-peer-deps="true"
|
||||||
|
|||||||
+16
@@ -0,0 +1,16 @@
|
|||||||
|
This is a fork of the VSCode repo called Void.
|
||||||
|
|
||||||
|
Most code we care about lives in src/vs/workbench/contrib/void.
|
||||||
|
|
||||||
|
You may often need to explore the full repo to find relevant parts of code.
|
||||||
|
Look for services and built-in functions that you might need to use to solve the problem.
|
||||||
|
|
||||||
|
In typescript, do NOT cast to types if not neccessary. NEVER lazily cast to 'any'. Find the correct type to apply and use it.
|
||||||
|
|
||||||
|
Do not add or remove semicolons to any of my files. Just go with convention and make the least number of changes.
|
||||||
|
|
||||||
|
Never modify files outside src/vs/workbench/contrib/void without consulting with the user first.
|
||||||
|
|
||||||
|
All types that map from a value A to B should be called bOfA. For example, if you create a hashmap that goes from toolId to toolName, it should be called toolNameOfToolId, etc.
|
||||||
|
|
||||||
|
Do not run anything to validate your changes; tell the user what to do instead.
|
||||||
+42
-7
@@ -5,15 +5,21 @@
|
|||||||
|
|
||||||
//@ts-check
|
//@ts-check
|
||||||
|
|
||||||
const path = require('path');
|
import { createRequire } from 'node:module';
|
||||||
|
import { fileURLToPath } from 'url';
|
||||||
|
import * as path from 'path';
|
||||||
|
import * as os from 'os';
|
||||||
|
|
||||||
|
const require = createRequire(import.meta.url);
|
||||||
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
||||||
|
|
||||||
const { defineConfig } = require('@vscode/test-cli');
|
const { defineConfig } = require('@vscode/test-cli');
|
||||||
const os = require('os');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A list of extension folders who have opted into tests, or configuration objects.
|
* A list of extension folders who have opted into tests, or configuration objects.
|
||||||
* Edit me to add more!
|
* Edit me to add more!
|
||||||
*
|
*
|
||||||
* @type {Array<string | (Partial<import("@vscode/test-cli").TestConfiguration> & { label: string })>}
|
* @type {Array<Partial<import("@vscode/test-cli").TestConfiguration> & { label: string }>}
|
||||||
*/
|
*/
|
||||||
const extensions = [
|
const extensions = [
|
||||||
{
|
{
|
||||||
@@ -36,6 +42,16 @@ const extensions = [
|
|||||||
workspaceFolder: `extensions/vscode-colorize-tests/test`,
|
workspaceFolder: `extensions/vscode-colorize-tests/test`,
|
||||||
mocha: { timeout: 60_000 }
|
mocha: { timeout: 60_000 }
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: 'terminal-suggest',
|
||||||
|
workspaceFolder: path.join(os.tmpdir(), `terminal-suggest-${Math.floor(Math.random() * 100000)}`),
|
||||||
|
mocha: { timeout: 60_000 }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'vscode-colorize-perf-tests',
|
||||||
|
workspaceFolder: `extensions/vscode-colorize-perf-tests/test`,
|
||||||
|
mocha: { timeout: 6000_000 }
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: 'configuration-editing',
|
label: 'configuration-editing',
|
||||||
workspaceFolder: path.join(os.tmpdir(), `confeditout-${Math.floor(Math.random() * 100000)}`),
|
workspaceFolder: path.join(os.tmpdir(), `confeditout-${Math.floor(Math.random() * 100000)}`),
|
||||||
@@ -49,6 +65,20 @@ const extensions = [
|
|||||||
{
|
{
|
||||||
label: 'microsoft-authentication',
|
label: 'microsoft-authentication',
|
||||||
mocha: { timeout: 60_000 }
|
mocha: { timeout: 60_000 }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'vscode-api-tests-folder',
|
||||||
|
extensionDevelopmentPath: `extensions/vscode-api-tests`,
|
||||||
|
workspaceFolder: `extensions/vscode-api-tests/testWorkspace`,
|
||||||
|
mocha: { timeout: 60_000 },
|
||||||
|
files: 'extensions/vscode-api-tests/out/singlefolder-tests/**/*.test.js',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'vscode-api-tests-workspace',
|
||||||
|
extensionDevelopmentPath: `extensions/vscode-api-tests`,
|
||||||
|
workspaceFolder: `extensions/vscode-api-tests/testworkspace.code-workspace`,
|
||||||
|
mocha: { timeout: 60_000 },
|
||||||
|
files: 'extensions/vscode-api-tests/out/workspace-tests/**/*.test.js',
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -57,11 +87,14 @@ const defaultLaunchArgs = process.env.API_TESTS_EXTRA_ARGS?.split(' ') || [
|
|||||||
'--disable-telemetry', '--skip-welcome', '--skip-release-notes', `--crash-reporter-directory=${__dirname}/.build/crashes`, `--logsPath=${__dirname}/.build/logs/integration-tests`, '--no-cached-data', '--disable-updates', '--use-inmemory-secretstorage', '--disable-extensions', '--disable-workspace-trust'
|
'--disable-telemetry', '--skip-welcome', '--skip-release-notes', `--crash-reporter-directory=${__dirname}/.build/crashes`, `--logsPath=${__dirname}/.build/logs/integration-tests`, '--no-cached-data', '--disable-updates', '--use-inmemory-secretstorage', '--disable-extensions', '--disable-workspace-trust'
|
||||||
];
|
];
|
||||||
|
|
||||||
module.exports = defineConfig(extensions.map(extension => {
|
const config = defineConfig(extensions.map(extension => {
|
||||||
/** @type {import('@vscode/test-cli').TestConfiguration} */
|
/** @type {import('@vscode/test-cli').TestConfiguration} */
|
||||||
const config = typeof extension === 'object'
|
const config = {
|
||||||
? { files: `extensions/${extension.label}/out/**/*.test.js`, ...extension }
|
platform: 'desktop',
|
||||||
: { files: `extensions/${extension}/out/**/*.test.js`, label: extension };
|
files: `extensions/${extension.label}/out/**/*.test.js`,
|
||||||
|
extensionDevelopmentPath: `extensions/${extension.label}`,
|
||||||
|
...extension,
|
||||||
|
};
|
||||||
|
|
||||||
config.mocha ??= {};
|
config.mocha ??= {};
|
||||||
if (process.env.BUILD_ARTIFACTSTAGINGDIRECTORY) {
|
if (process.env.BUILD_ARTIFACTSTAGINGDIRECTORY) {
|
||||||
@@ -99,3 +132,5 @@ module.exports = defineConfig(extensions.map(extension => {
|
|||||||
|
|
||||||
return config;
|
return config;
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
export default config;
|
||||||
|
|||||||
@@ -4,8 +4,7 @@
|
|||||||
"description": "Test provider for the VS Code project",
|
"description": "Test provider for the VS Code project",
|
||||||
"enabledApiProposals": [
|
"enabledApiProposals": [
|
||||||
"testObserver",
|
"testObserver",
|
||||||
"testRelatedCode",
|
"testRelatedCode"
|
||||||
"attributableCoverage"
|
|
||||||
],
|
],
|
||||||
"engines": {
|
"engines": {
|
||||||
"vscode": "^1.88.0"
|
"vscode": "^1.88.0"
|
||||||
|
|||||||
@@ -142,7 +142,7 @@ class ScriptCoverageTracker {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export class V8CoverageFile extends vscode.FileCoverage2 {
|
export class V8CoverageFile extends vscode.FileCoverage {
|
||||||
public details: vscode.StatementCoverage[] = [];
|
public details: vscode.StatementCoverage[] = [];
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
|
|||||||
@@ -86,10 +86,11 @@ export async function activate(context: vscode.ExtensionContext) {
|
|||||||
}, uri => ctrl.items.get(uri.toString().toLowerCase()));
|
}, uri => ctrl.items.get(uri.toString().toLowerCase()));
|
||||||
ctrl.relatedCodeProvider = graph;
|
ctrl.relatedCodeProvider = graph;
|
||||||
|
|
||||||
context.subscriptions.push(
|
if (context.storageUri) {
|
||||||
new FailureTracker(context, folder.uri.fsPath),
|
context.subscriptions.push(new FailureTracker(context.storageUri.fsPath, folder.uri.fsPath));
|
||||||
fileChangedEmitter.event(e => graph.didChange(e.uri, e.removed)),
|
}
|
||||||
);
|
|
||||||
|
context.subscriptions.push(fileChangedEmitter.event(e => graph.didChange(e.uri, e.removed)));
|
||||||
});
|
});
|
||||||
|
|
||||||
const createRunHandler = (
|
const createRunHandler = (
|
||||||
|
|||||||
@@ -33,8 +33,8 @@ export class FailureTracker {
|
|||||||
private readonly logFile: string;
|
private readonly logFile: string;
|
||||||
private logs?: ITrackedRemediation[];
|
private logs?: ITrackedRemediation[];
|
||||||
|
|
||||||
constructor(context: vscode.ExtensionContext, private readonly rootDir: string) {
|
constructor(storageLocation: string, private readonly rootDir: string) {
|
||||||
this.logFile = join(context.globalStorageUri.fsPath, '.build/vscode-test-failures.json');
|
this.logFile = join(storageLocation, '.build/vscode-test-failures.json');
|
||||||
mkdirSync(dirname(this.logFile), { recursive: true });
|
mkdirSync(dirname(this.logFile), { recursive: true });
|
||||||
|
|
||||||
const oldLogFile = join(rootDir, '.build/vscode-test-failures.json');
|
const oldLogFile = join(rootDir, '.build/vscode-test-failures.json');
|
||||||
|
|||||||
@@ -11,7 +11,6 @@
|
|||||||
"src/**/*",
|
"src/**/*",
|
||||||
"../../../src/vscode-dts/vscode.d.ts",
|
"../../../src/vscode-dts/vscode.d.ts",
|
||||||
"../../../src/vscode-dts/vscode.proposed.testObserver.d.ts",
|
"../../../src/vscode-dts/vscode.proposed.testObserver.d.ts",
|
||||||
"../../../src/vscode-dts/vscode.proposed.testRelatedCode.d.ts",
|
"../../../src/vscode-dts/vscode.proposed.testRelatedCode.d.ts"
|
||||||
"../../../src/vscode-dts/vscode.proposed.attributableCoverage.d.ts"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+78
-5
@@ -202,6 +202,24 @@
|
|||||||
"order": 5
|
"order": 5
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"type": "extensionHost",
|
||||||
|
"request": "launch",
|
||||||
|
"name": "VS Code Tokenizer Performance Tests",
|
||||||
|
"runtimeExecutable": "${execPath}",
|
||||||
|
"args": [
|
||||||
|
"${workspaceFolder}/extensions/vscode-colorize-perf-tests/test",
|
||||||
|
"--extensionDevelopmentPath=${workspaceFolder}/extensions/vscode-colorize-perf-tests",
|
||||||
|
"--extensionTestsPath=${workspaceFolder}/extensions/vscode-colorize-perf-tests/out"
|
||||||
|
],
|
||||||
|
"outFiles": [
|
||||||
|
"${workspaceFolder}/out/**/*.js"
|
||||||
|
],
|
||||||
|
"presentation": {
|
||||||
|
"group": "5_tests",
|
||||||
|
"order": 6
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"type": "chrome",
|
"type": "chrome",
|
||||||
"request": "attach",
|
"request": "attach",
|
||||||
@@ -233,7 +251,51 @@
|
|||||||
"timeout": 0,
|
"timeout": 0,
|
||||||
"env": {
|
"env": {
|
||||||
"VSCODE_EXTHOST_WILL_SEND_SOCKET": null,
|
"VSCODE_EXTHOST_WILL_SEND_SOCKET": null,
|
||||||
"VSCODE_SKIP_PRELAUNCH": "1"
|
"VSCODE_SKIP_PRELAUNCH": "1",
|
||||||
|
},
|
||||||
|
"cleanUp": "wholeBrowser",
|
||||||
|
"runtimeArgs": [
|
||||||
|
"--inspect-brk=5875",
|
||||||
|
"--no-cached-data",
|
||||||
|
"--crash-reporter-directory=${workspaceFolder}/.profile-oss/crashes",
|
||||||
|
// for general runtime freezes: https://github.com/microsoft/vscode/issues/127861#issuecomment-904144910
|
||||||
|
"--disable-features=CalculateNativeWinOcclusion",
|
||||||
|
"--disable-extension=vscode.vscode-api-tests"
|
||||||
|
],
|
||||||
|
"userDataDir": "${userHome}/.vscode-oss-dev",
|
||||||
|
"webRoot": "${workspaceFolder}",
|
||||||
|
"cascadeTerminateToConfigurations": [
|
||||||
|
"Attach to Extension Host"
|
||||||
|
],
|
||||||
|
"pauseForSourceMap": false,
|
||||||
|
"outFiles": [
|
||||||
|
"${workspaceFolder}/out/**/*.js"
|
||||||
|
],
|
||||||
|
"browserLaunchLocation": "workspace",
|
||||||
|
"presentation": {
|
||||||
|
"hidden": true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
// To debug observables you also need the extension "ms-vscode.debug-value-editor"
|
||||||
|
"type": "chrome",
|
||||||
|
"request": "launch",
|
||||||
|
"name": "Launch VS Code Internal (Dev Debug)",
|
||||||
|
"windows": {
|
||||||
|
"runtimeExecutable": "${workspaceFolder}/scripts/code.bat"
|
||||||
|
},
|
||||||
|
"osx": {
|
||||||
|
"runtimeExecutable": "${workspaceFolder}/scripts/code.sh"
|
||||||
|
},
|
||||||
|
"linux": {
|
||||||
|
"runtimeExecutable": "${workspaceFolder}/scripts/code.sh"
|
||||||
|
},
|
||||||
|
"port": 9222,
|
||||||
|
"timeout": 0,
|
||||||
|
"env": {
|
||||||
|
"VSCODE_EXTHOST_WILL_SEND_SOCKET": null,
|
||||||
|
"VSCODE_SKIP_PRELAUNCH": "1",
|
||||||
|
"VSCODE_DEV_DEBUG": "1",
|
||||||
},
|
},
|
||||||
"cleanUp": "wholeBrowser",
|
"cleanUp": "wholeBrowser",
|
||||||
"runtimeArgs": [
|
"runtimeArgs": [
|
||||||
@@ -257,10 +319,6 @@
|
|||||||
"presentation": {
|
"presentation": {
|
||||||
"hidden": true,
|
"hidden": true,
|
||||||
},
|
},
|
||||||
// This is read by the vscode-diagnostic-tools extension
|
|
||||||
"vscode-diagnostic-tools.debuggerScripts": [
|
|
||||||
"${workspaceFolder}/scripts/hot-reload-injected-script.js"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "node",
|
"type": "node",
|
||||||
@@ -554,6 +612,21 @@
|
|||||||
"order": 1
|
"order": 1
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "VS Code (Debug Observables)",
|
||||||
|
"stopAll": true,
|
||||||
|
"configurations": [
|
||||||
|
"Launch VS Code Internal (Dev Debug)",
|
||||||
|
"Attach to Main Process",
|
||||||
|
"Attach to Extension Host",
|
||||||
|
"Attach to Shared Process",
|
||||||
|
],
|
||||||
|
"preLaunchTask": "Ensure Prelaunch Dependencies",
|
||||||
|
"presentation": {
|
||||||
|
"group": "0_vscode",
|
||||||
|
"order": 1
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "Search, Renderer, and Main processes",
|
"name": "Search, Renderer, and Main processes",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
|
|||||||
Vendored
+1
-1
@@ -7,7 +7,7 @@
|
|||||||
{
|
{
|
||||||
"kind": 2,
|
"kind": 2,
|
||||||
"language": "github-issues",
|
"language": "github-issues",
|
||||||
"value": "$REPO=repo:microsoft/vscode\n$MILESTONE=milestone:\"September 2024\""
|
"value": "$REPO=repo:microsoft/vscode\n$MILESTONE=milestone:\"March 2025\""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"kind": 1,
|
"kind": 1,
|
||||||
|
|||||||
+3
-3
@@ -7,7 +7,7 @@
|
|||||||
{
|
{
|
||||||
"kind": 2,
|
"kind": 2,
|
||||||
"language": "github-issues",
|
"language": "github-issues",
|
||||||
"value": "$REPOS=repo:microsoft/lsprotocol repo:microsoft/monaco-editor repo:microsoft/vscode repo:microsoft/vscode-anycode repo:microsoft/vscode-autopep8 repo:microsoft/vscode-black-formatter repo:microsoft/vscode-copilot repo:microsoft/vscode-copilot-release repo:microsoft/vscode-dev repo:microsoft/vscode-dev-chrome-launcher repo:microsoft/vscode-emmet-helper repo:microsoft/vscode-extension-telemetry repo:microsoft/vscode-flake8 repo:microsoft/vscode-github-issue-notebooks repo:microsoft/vscode-hexeditor repo:microsoft/vscode-internalbacklog repo:microsoft/vscode-isort repo:microsoft/vscode-js-debug repo:microsoft/vscode-jupyter repo:microsoft/vscode-jupyter-internal repo:microsoft/vscode-l10n repo:microsoft/vscode-livepreview repo:microsoft/vscode-markdown-languageservice repo:microsoft/vscode-markdown-tm-grammar repo:microsoft/vscode-mypy repo:microsoft/vscode-pull-request-github repo:microsoft/vscode-pylint repo:microsoft/vscode-python repo:microsoft/vscode-python-debugger repo:microsoft/vscode-python-tools-extension-template repo:microsoft/vscode-references-view repo:microsoft/vscode-remote-release repo:microsoft/vscode-remote-repositories-github repo:microsoft/vscode-remote-tunnels repo:microsoft/vscode-remotehub repo:microsoft/vscode-settings-sync-server repo:microsoft/vscode-unpkg repo:microsoft/vscode-vsce\n\n$MILESTONE=milestone:\"September 2024\""
|
"value": "$REPOS=repo:microsoft/lsprotocol repo:microsoft/monaco-editor repo:microsoft/vscode repo:microsoft/vscode-anycode repo:microsoft/vscode-autopep8 repo:microsoft/vscode-black-formatter repo:microsoft/vscode-copilot repo:microsoft/vscode-copilot-release repo:microsoft/vscode-dev repo:microsoft/vscode-dev-chrome-launcher repo:microsoft/vscode-emmet-helper repo:microsoft/vscode-extension-telemetry repo:microsoft/vscode-flake8 repo:microsoft/vscode-github-issue-notebooks repo:microsoft/vscode-hexeditor repo:microsoft/vscode-internalbacklog repo:microsoft/vscode-isort repo:microsoft/vscode-js-debug repo:microsoft/vscode-jupyter repo:microsoft/vscode-jupyter-internal repo:microsoft/vscode-l10n repo:microsoft/vscode-livepreview repo:microsoft/vscode-markdown-languageservice repo:microsoft/vscode-markdown-tm-grammar repo:microsoft/vscode-mypy repo:microsoft/vscode-pull-request-github repo:microsoft/vscode-pylint repo:microsoft/vscode-python repo:microsoft/vscode-python-debugger repo:microsoft/vscode-python-tools-extension-template repo:microsoft/vscode-references-view repo:microsoft/vscode-remote-release repo:microsoft/vscode-remote-repositories-github repo:microsoft/vscode-remote-tunnels repo:microsoft/vscode-remotehub repo:microsoft/vscode-settings-sync-server repo:microsoft/vscode-unpkg repo:microsoft/vscode-vsce\r\n\r\n$MILESTONE=milestone:\"March 2025\""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"kind": 1,
|
"kind": 1,
|
||||||
@@ -97,7 +97,7 @@
|
|||||||
{
|
{
|
||||||
"kind": 2,
|
"kind": 2,
|
||||||
"language": "github-issues",
|
"language": "github-issues",
|
||||||
"value": "$REPOS $MILESTONE is:issue is:closed reason:completed label:verification-needed -label:verified"
|
"value": "$REPOS $MILESTONE is:issue is:closed reason:completed label:verification-needed -label:verified -label:on-testplan"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"kind": 1,
|
"kind": 1,
|
||||||
@@ -112,7 +112,7 @@
|
|||||||
{
|
{
|
||||||
"kind": 2,
|
"kind": 2,
|
||||||
"language": "github-issues",
|
"language": "github-issues",
|
||||||
"value": "$REPOS $MILESTONE is:issue is:closed reason:completed sort:updated-asc label:bug -label:verified -label:on-testplan -label:*duplicate -label:duplicate -label:invalid -label:*as-designed -label:error-telemetry -label:verification-steps-needed -label:z-author-verified -label:unreleased -label:*not-reproducible"
|
"value": "$REPOS $MILESTONE is:issue is:closed reason:completed sort:updated-asc label:bug -label:verified -label:on-testplan -label:*duplicate -label:duplicate -label:invalid -label:*as-designed -label:error-telemetry -label:verification-steps-needed -label:z-author-verified -label:unreleased -label:*not-reproducible -label:*out-of-scope"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"kind": 1,
|
"kind": 1,
|
||||||
|
|||||||
+9
-9
File diff suppressed because one or more lines are too long
+5
-5
@@ -7,7 +7,7 @@
|
|||||||
{
|
{
|
||||||
"kind": 2,
|
"kind": 2,
|
||||||
"language": "github-issues",
|
"language": "github-issues",
|
||||||
"value": "$REPOS=repo:microsoft/lsprotocol repo:microsoft/monaco-editor repo:microsoft/vscode repo:microsoft/vscode-anycode repo:microsoft/vscode-autopep8 repo:microsoft/vscode-black-formatter repo:microsoft/vscode-copilot repo:microsoft/vscode-copilot-release repo:microsoft/vscode-dev repo:microsoft/vscode-dev-chrome-launcher repo:microsoft/vscode-emmet-helper repo:microsoft/vscode-extension-telemetry repo:microsoft/vscode-flake8 repo:microsoft/vscode-github-issue-notebooks repo:microsoft/vscode-hexeditor repo:microsoft/vscode-internalbacklog repo:microsoft/vscode-isort repo:microsoft/vscode-js-debug repo:microsoft/vscode-jupyter repo:microsoft/vscode-jupyter-internal repo:microsoft/vscode-l10n repo:microsoft/vscode-livepreview repo:microsoft/vscode-markdown-languageservice repo:microsoft/vscode-markdown-tm-grammar repo:microsoft/vscode-mypy repo:microsoft/vscode-pull-request-github repo:microsoft/vscode-pylint repo:microsoft/vscode-python repo:microsoft/vscode-python-debugger repo:microsoft/vscode-python-tools-extension-template repo:microsoft/vscode-references-view repo:microsoft/vscode-remote-release repo:microsoft/vscode-remote-repositories-github repo:microsoft/vscode-remote-tunnels repo:microsoft/vscode-remotehub repo:microsoft/vscode-settings-sync-server repo:microsoft/vscode-unpkg repo:microsoft/vscode-vsce\n\n$MILESTONE=milestone:\"September 2024\"\n\n$MINE=assignee:@me"
|
"value": "$REPOS=repo:microsoft/lsprotocol repo:microsoft/monaco-editor repo:microsoft/vscode repo:microsoft/vscode-anycode repo:microsoft/vscode-autopep8 repo:microsoft/vscode-black-formatter repo:microsoft/vscode-copilot repo:microsoft/vscode-copilot-release repo:microsoft/vscode-dev repo:microsoft/vscode-dev-chrome-launcher repo:microsoft/vscode-emmet-helper repo:microsoft/vscode-extension-telemetry repo:microsoft/vscode-flake8 repo:microsoft/vscode-github-issue-notebooks repo:microsoft/vscode-hexeditor repo:microsoft/vscode-internalbacklog repo:microsoft/vscode-isort repo:microsoft/vscode-js-debug repo:microsoft/vscode-jupyter repo:microsoft/vscode-jupyter-internal repo:microsoft/vscode-l10n repo:microsoft/vscode-livepreview repo:microsoft/vscode-markdown-languageservice repo:microsoft/vscode-markdown-tm-grammar repo:microsoft/vscode-mypy repo:microsoft/vscode-pull-request-github repo:microsoft/vscode-pylint repo:microsoft/vscode-python repo:microsoft/vscode-python-debugger repo:microsoft/vscode-python-tools-extension-template repo:microsoft/vscode-references-view repo:microsoft/vscode-remote-release repo:microsoft/vscode-remote-repositories-github repo:microsoft/vscode-remote-tunnels repo:microsoft/vscode-remotehub repo:microsoft/vscode-settings-sync-server repo:microsoft/vscode-unpkg repo:microsoft/vscode-vsce\n\n$MILESTONE=milestone:\"March 2025\"\n\n$MINE=assignee:@me"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"kind": 1,
|
"kind": 1,
|
||||||
@@ -62,7 +62,7 @@
|
|||||||
{
|
{
|
||||||
"kind": 2,
|
"kind": 2,
|
||||||
"language": "github-issues",
|
"language": "github-issues",
|
||||||
"value": "$REPOS $MILESTONE $MINE is:issue is:closed reason:completed label:feature-request label:verification-needed -label:verified"
|
"value": "$REPOS $MILESTONE $MINE is:issue is:closed reason:completed label:feature-request label:verification-needed -label:verified -label:on-testplan"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"kind": 1,
|
"kind": 1,
|
||||||
@@ -87,7 +87,7 @@
|
|||||||
{
|
{
|
||||||
"kind": 2,
|
"kind": 2,
|
||||||
"language": "github-issues",
|
"language": "github-issues",
|
||||||
"value": "$REPOS $MILESTONE -$MINE is:issue is:closed reason:completed -assignee:@me -label:verified -label:z-author-verified label:feature-request label:verification-needed -label:verification-steps-needed -label:unreleased"
|
"value": "$REPOS $MILESTONE -$MINE is:issue is:closed reason:completed -assignee:@me -label:verified -label:z-author-verified label:feature-request label:verification-needed -label:verification-steps-needed -label:unreleased -label:on-testplan"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"kind": 1,
|
"kind": 1,
|
||||||
@@ -157,7 +157,7 @@
|
|||||||
{
|
{
|
||||||
"kind": 2,
|
"kind": 2,
|
||||||
"language": "github-issues",
|
"language": "github-issues",
|
||||||
"value": "$REPOS $MILESTONE -$MINE is:issue is:closed reason:completed sort:updated-asc label:bug -label:unreleased -label:verified -label:z-author-verified -label:on-testplan -label:*duplicate -label:duplicate -label:invalid -label:*as-designed -label:*out-of-scope -label:error-telemetry -label:verification-steps-needed -label:verification-found -author:aeschli -author:alexdima -author:alexr00 -author:AmandaSilver -author:andreamah -author:bamurtaugh -author:bpasero -author:chrisdias -author:chrmarti -author:Chuxel -author:claudiaregio -author:connor4312 -author:dbaeumer -author:deepak1556 -author:devinvalenciano -author:digitarald -author:DonJayamanne -author:egamma -author:fiveisprime -author:gregvanl -author:hediet -author:isidorn -author:joaomoreno -author:joyceerhl -author:jrieken -author:kieferrm -author:lramos15 -author:lszomoru -author:meganrogge -author:misolori -author:mjbvz -author:rebornix -author:roblourens -author:rzhao271 -author:sandy081 -author:sbatten -author:stevencl -author:tanhakabir -author:TylerLeonhardt -author:Tyriar -author:weinand -author:amunger -author:karthiknadig -author:eleanorjboyd -author:Yoyokrazy -author:paulacamargo25 -author:ulugbekna -author:aiday-mar -author:daviddossett -author:bhavyaus -author:justschen -author:benibenj -author:luabud -author:anthonykim1 -author:joshspicer"
|
"value": "$REPOS $MILESTONE -$MINE is:issue is:closed reason:completed sort:updated-asc label:bug -label:unreleased -label:verified -label:z-author-verified -label:on-testplan -label:*duplicate -label:duplicate -label:invalid -label:*as-designed -label:*out-of-scope -label:error-telemetry -label:verification-steps-needed -label:verification-found -author:aeschli -author:alexdima -author:alexr00 -author:AmandaSilver -author:andreamah -author:bamurtaugh -author:bpasero -author:chrisdias -author:chrmarti -author:Chuxel -author:claudiaregio -author:connor4312 -author:dbaeumer -author:deepak1556 -author:devinvalenciano -author:digitarald -author:DonJayamanne -author:egamma -author:fiveisprime -author:ntrogh -author:hediet -author:isidorn -author:joaomoreno -author:joyceerhl -author:jrieken -author:kieferrm -author:lramos15 -author:lszomoru -author:meganrogge -author:misolori -author:mjbvz -author:rebornix -author:roblourens -author:rzhao271 -author:sandy081 -author:sbatten -author:stevencl -author:tanhakabir -author:TylerLeonhardt -author:Tyriar -author:weinand -author:amunger -author:karthiknadig -author:eleanorjboyd -author:Yoyokrazy -author:paulacamargo25 -author:ulugbekna -author:aiday-mar -author:daviddossett -author:bhavyaus -author:justschen -author:benibenj -author:luabud -author:anthonykim1 -author:joshspicer -author:osortega -author:legomushroom"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"kind": 1,
|
"kind": 1,
|
||||||
@@ -187,6 +187,6 @@
|
|||||||
{
|
{
|
||||||
"kind": 2,
|
"kind": 2,
|
||||||
"language": "github-issues",
|
"language": "github-issues",
|
||||||
"value": "$REPOS $MILESTONE $MINE is:issue is:closed reason:completed label:feature-request -label:on-release-notes\n$REPOS $MILESTONE $MINE is:issue is:closed reason:completed label:engineering -label:on-release-notes\n$REPOS $MILESTONE $MINE is:issue is:closed reason:completed label:plan-item -label:on-release-notes"
|
"value": "$REPOS $MILESTONE $MINE is:issue is:closed reason:completed label:feature-request -label:on-release-notes\r\n$REPOS $MILESTONE $MINE is:issue is:closed reason:completed label:engineering -label:on-release-notes\r\n$REPOS $MILESTONE $MINE is:issue is:closed reason:completed label:plan-item -label:on-release-notes"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
+2
-2
File diff suppressed because one or more lines are too long
Vendored
+19
-12
@@ -8,6 +8,7 @@
|
|||||||
"**/.DS_Store": true,
|
"**/.DS_Store": true,
|
||||||
".vscode-test": true,
|
".vscode-test": true,
|
||||||
"cli/target": true,
|
"cli/target": true,
|
||||||
|
"build/**/*.js.map": true,
|
||||||
"build/**/*.js": {
|
"build/**/*.js": {
|
||||||
"when": "$(basename).ts"
|
"when": "$(basename).ts"
|
||||||
}
|
}
|
||||||
@@ -41,8 +42,6 @@
|
|||||||
"**/yarn.lock": true,
|
"**/yarn.lock": true,
|
||||||
"**/package-lock.json": true,
|
"**/package-lock.json": true,
|
||||||
"**/Cargo.lock": true,
|
"**/Cargo.lock": true,
|
||||||
"src/vs/workbench/workbench.web.main.css": true,
|
|
||||||
"src/vs/workbench/workbench.desktop.main.css": true,
|
|
||||||
"build/**/*.js": true,
|
"build/**/*.js": true,
|
||||||
"out/**": true,
|
"out/**": true,
|
||||||
"out-build/**": true,
|
"out-build/**": true,
|
||||||
@@ -50,10 +49,10 @@
|
|||||||
"out-vscode-reh/**": true,
|
"out-vscode-reh/**": true,
|
||||||
"extensions/**/dist/**": true,
|
"extensions/**/dist/**": true,
|
||||||
"extensions/**/out/**": true,
|
"extensions/**/out/**": true,
|
||||||
|
"extensions/terminal-suggest/src/completions/upstream/**": true,
|
||||||
"test/smoke/out/**": true,
|
"test/smoke/out/**": true,
|
||||||
"test/automation/out/**": true,
|
"test/automation/out/**": true,
|
||||||
"test/integration/browser/out/**": true,
|
"test/integration/browser/out/**": true
|
||||||
"src2/**": true,
|
|
||||||
},
|
},
|
||||||
"files.readonlyExclude": {
|
"files.readonlyExclude": {
|
||||||
"build/builtin/*.js": true,
|
"build/builtin/*.js": true,
|
||||||
@@ -94,13 +93,12 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"git.ignoreLimitWarning": true,
|
"git.ignoreLimitWarning": true,
|
||||||
// Removing this for Void:
|
"git.branchProtection": [
|
||||||
// "git.branchProtection": [
|
"main",
|
||||||
// "main",
|
"distro",
|
||||||
// "distro",
|
"release/*"
|
||||||
// "release/*"
|
],
|
||||||
// ],
|
"git.branchProtectionPrompt": "alwaysCommitToNewBranch",
|
||||||
// "git.branchProtectionPrompt": "alwaysCommitToNewBranch",
|
|
||||||
"git.branchRandomName.enable": true,
|
"git.branchRandomName.enable": true,
|
||||||
"git.pullBeforeCheckout": true,
|
"git.pullBeforeCheckout": true,
|
||||||
"git.mergeEditor": true,
|
"git.mergeEditor": true,
|
||||||
@@ -159,6 +157,7 @@
|
|||||||
"application.experimental.rendererProfiling": true,
|
"application.experimental.rendererProfiling": true,
|
||||||
"editor.experimental.asyncTokenization": true,
|
"editor.experimental.asyncTokenization": true,
|
||||||
"editor.experimental.asyncTokenizationVerification": true,
|
"editor.experimental.asyncTokenizationVerification": true,
|
||||||
|
"terminal.integrated.suggest.enabled": true,
|
||||||
"typescript.preferences.autoImportFileExcludePatterns": [
|
"typescript.preferences.autoImportFileExcludePatterns": [
|
||||||
"@xterm/xterm",
|
"@xterm/xterm",
|
||||||
"@xterm/headless",
|
"@xterm/headless",
|
||||||
@@ -171,5 +170,13 @@
|
|||||||
},
|
},
|
||||||
"css.format.spaceAroundSelectorSeparator": true,
|
"css.format.spaceAroundSelectorSeparator": true,
|
||||||
"typescript.enablePromptUseWorkspaceTsdk": true,
|
"typescript.enablePromptUseWorkspaceTsdk": true,
|
||||||
"inlineChat.experimental.onlyZoneWidget": true
|
"eslint.useFlatConfig": true,
|
||||||
|
"editor.occurrencesHighlightDelay": 0,
|
||||||
|
"typescript.experimental.expandableHover": true,
|
||||||
|
"git.diagnosticsCommitHook.Enabled": true,
|
||||||
|
"git.diagnosticsCommitHook.Sources": {
|
||||||
|
"*": "error",
|
||||||
|
"ts": "warning",
|
||||||
|
"eslint": "warning"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
-18
@@ -36,23 +36,5 @@
|
|||||||
"private readonly _onDid$1 = new Emitter<$2>();",
|
"private readonly _onDid$1 = new Emitter<$2>();",
|
||||||
"readonly onDid$1: Event<$2> = this._onDid$1.event;"
|
"readonly onDid$1: Event<$2> = this._onDid$1.event;"
|
||||||
],
|
],
|
||||||
},
|
|
||||||
"esm-comment": {
|
|
||||||
"scope": "typescript,javascript",
|
|
||||||
"prefix": "esm-comment",
|
|
||||||
"body": [
|
|
||||||
"// ESM-comment-begin",
|
|
||||||
"$SELECTION$0",
|
|
||||||
"// ESM-comment-end",
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"esm-uncomment": {
|
|
||||||
"scope": "typescript,javascript",
|
|
||||||
"prefix": "esm-uncomment",
|
|
||||||
"body": [
|
|
||||||
"// ESM-uncomment-begin",
|
|
||||||
"// $SELECTION$0",
|
|
||||||
"// ESM-uncomment-end",
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+3
-3
@@ -29,7 +29,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{ // Void added this
|
||||||
"type": "npm",
|
"type": "npm",
|
||||||
"script": "watchreactd",
|
"script": "watchreactd",
|
||||||
"label": "React - Build",
|
"label": "React - Build",
|
||||||
@@ -89,8 +89,8 @@
|
|||||||
"label": "VS Code - Build",
|
"label": "VS Code - Build",
|
||||||
"dependsOn": [
|
"dependsOn": [
|
||||||
"Core - Build",
|
"Core - Build",
|
||||||
"Ext - Build",
|
"React - Build",
|
||||||
"React - Build"
|
"Ext - Build"
|
||||||
],
|
],
|
||||||
"group": {
|
"group": {
|
||||||
"kind": "build",
|
"kind": "build",
|
||||||
|
|||||||
-166
@@ -1,166 +0,0 @@
|
|||||||
# Contributing to Void
|
|
||||||
### Welcome! 👋
|
|
||||||
This is the official guide on how to contribute to Void. We want to make it as easy as possible to contribute, so if you have any questions or comments, reach out via email or discord!
|
|
||||||
|
|
||||||
There are a few ways to contribute:
|
|
||||||
|
|
||||||
- 💫 Complete items on the [Roadmap](https://github.com/orgs/voideditor/projects/2).
|
|
||||||
- 💡 Make suggestions in our [Discord](https://discord.gg/RSNjgaugJs).
|
|
||||||
- 🪴 Start new Issues - see [Issues](https://github.com/voideditor/void/issues).
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Codebase Guide
|
|
||||||
|
|
||||||
We highly recommend reading [this](https://github.com/microsoft/vscode/wiki/Source-Code-Organization) article on VSCode's sourcecode organization.
|
|
||||||
|
|
||||||
We are currently putting together our own articles on VSCode and Void's sourcecode organization. The best way to get this information right now is by attending a weekly meeting.
|
|
||||||
|
|
||||||
<!-- ADD BLOG HERE
|
|
||||||
We wrote a [guide to working in VSCode].
|
|
||||||
-->
|
|
||||||
|
|
||||||
Most of Void's code lives in the two folders called `void/`.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Building Void
|
|
||||||
|
|
||||||
### a. Build Prerequisites - Mac
|
|
||||||
|
|
||||||
If you're using a Mac, you need Python and XCode. You probably have these by default.
|
|
||||||
|
|
||||||
### b. Build Prerequisites - Windows
|
|
||||||
|
|
||||||
If you're using a Windows computer, first get [Visual Studio 2022](https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=Community) (recommended) or [VS Build Tools](https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=BuildTools) (not recommended). If you already have both, you might need to run the next few steps on both of them.
|
|
||||||
|
|
||||||
Go to the "Workloads" tab and select:
|
|
||||||
- `Desktop development with C++`
|
|
||||||
- `Node.js build tools`
|
|
||||||
|
|
||||||
Go to the "Individual Components" tab and select:
|
|
||||||
- `MSVC v143 - VS 2022 C++ x64/x86 Spectre-mitigated libs (Latest)`
|
|
||||||
- `C++ ATL for latest build tools with Spectre Mitigations`
|
|
||||||
- `C++ MFC for latest build tools with Spectre Mitigations`
|
|
||||||
|
|
||||||
Finally, click Install.
|
|
||||||
|
|
||||||
### c. Build Prerequisites - Linux
|
|
||||||
|
|
||||||
First, run `npm install -g node-gyp`. Then:
|
|
||||||
|
|
||||||
- Debian (Ubuntu, etc): `sudo apt-get install build-essential g++ libx11-dev libxkbfile-dev libsecret-1-dev libkrb5-dev python-is-python3`.
|
|
||||||
- Red Hat (Fedora, etc): `sudo dnf install @development-tools gcc gcc-c++ make libsecret-devel krb5-devel libX11-devel libxkbfile-devel`.
|
|
||||||
- Others: see [How to Contribute](https://github.com/microsoft/vscode/wiki/How-to-Contribute).
|
|
||||||
|
|
||||||
### d. Building Void
|
|
||||||
|
|
||||||
To build Void, open `void/` inside VSCode. Then open your terminal and run:
|
|
||||||
|
|
||||||
1. `npm install` to install all dependencies.
|
|
||||||
2. `npm run watchreact` to build Void's browser dependencies like React. (If this doesn't work, try `npm run buildreact`).
|
|
||||||
3. Build Void.
|
|
||||||
- Press <kbd>Cmd+Shift+B</kbd> (Mac).
|
|
||||||
- Press <kbd>Ctrl+Shift+B</kbd> (Windows/Linux).
|
|
||||||
- This step can take ~5 min. The build is done when you see two check marks.
|
|
||||||
4. Run Void.
|
|
||||||
- Run `./scripts/code.sh` (Mac/Linux).
|
|
||||||
- Run `./scripts/code.bat` (Windows).
|
|
||||||
6. Nice-to-knows.
|
|
||||||
- You can always press <kbd>Ctrl+R</kbd> (<kbd>Cmd+R</kbd>) inside the new window to reload and see your new changes. It's faster than <kbd>Ctrl+Shift+P</kbd> and `Reload Window`.
|
|
||||||
- You might want to add the flags `--user-data-dir ./.tmp/user-data --extensions-dir ./.tmp/extensions` to the above run command, which lets you delete the `.tmp` folder to reset any IDE changes you made when testing.
|
|
||||||
|
|
||||||
#### Building Void from Terminal
|
|
||||||
|
|
||||||
Alternatively, if you want to build Void from the terminal, instead of pressing <kbd>Cmd+Shift+B</kbd> you can run `npm run watch`. The build is done when you see something like this:
|
|
||||||
|
|
||||||
```
|
|
||||||
[watch-extensions] [00:37:39] Finished compilation extensions with 0 errors after 19303 ms
|
|
||||||
[watch-client ] [00:38:06] Finished compilation with 0 errors after 46248 ms
|
|
||||||
[watch-client ] [00:38:07] Starting compilation...
|
|
||||||
[watch-client ] [00:38:07] Finished compilation with 0 errors after 5 ms
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#### Common Fixes
|
|
||||||
|
|
||||||
- Make sure you followed the prerequisite steps.
|
|
||||||
- Make sure you have Node version `20.16.0` (the version in `.nvmrc`)!
|
|
||||||
- If you get `"TypeError: Failed to fetch dynamically imported module"`, make sure all imports end with `.js`.
|
|
||||||
- If you see missing styles, wait a few seconds and then reload.
|
|
||||||
- If you have any questions, feel free to [submit an issue](https://github.com/voideditor/void/issues/new). You can also refer to VSCode's complete [How to Contribute](https://github.com/microsoft/vscode/wiki/How-to-Contribute) page.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Packaging
|
|
||||||
|
|
||||||
We don't usually recommend packaging. Instead, you should probably just build. If you're sure you want to package Void into an executable app, make sure you've built first, then run one of the following commands. This will create a folder named `VSCode-darwin-arm64` or similar outside of the void/ repo (see below). Be patient - packaging can take ~25 minutes.
|
|
||||||
|
|
||||||
|
|
||||||
### Mac
|
|
||||||
- `npm run gulp vscode-darwin-arm64` - most common (Apple Silicon)
|
|
||||||
- `npm run gulp vscode-darwin-x64` (Intel)
|
|
||||||
|
|
||||||
### Windows
|
|
||||||
- `npm run gulp vscode-win32-x64` - most common
|
|
||||||
- `npm run gulp vscode-win32-ia32`
|
|
||||||
|
|
||||||
### Linux
|
|
||||||
- `npm run gulp vscode-linux-x64` - most common
|
|
||||||
- `npm run gulp vscode-linux-arm`
|
|
||||||
- `npm run gulp vscode-linux-ia32`
|
|
||||||
|
|
||||||
|
|
||||||
### Output
|
|
||||||
|
|
||||||
This will generate a folder outside of `void/`:
|
|
||||||
```bash
|
|
||||||
workspace/
|
|
||||||
├── void/ # Your Void fork
|
|
||||||
└── VSCode-darwin-arm64/ # Generated output
|
|
||||||
```
|
|
||||||
|
|
||||||
### Distributing
|
|
||||||
Void's maintainers distribute Void on our website and in releases. If you'd like to see the scripts to convert `Mac .app -> .dmg`, `Windows folder -> .exe`, and `Linux folder -> appimage` for distribution, feel free to reach out.
|
|
||||||
|
|
||||||
## Pull Request Guidelines
|
|
||||||
|
|
||||||
|
|
||||||
- Please submit a pull request once you've made a change.
|
|
||||||
- No need to submit an Issue unless you're creating a new feature that might involve multiple PRs.
|
|
||||||
- Please don't use AI to write your PR 🙂
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!--
|
|
||||||
# Relevant files
|
|
||||||
|
|
||||||
We keep track of all the files we've changed with Void so it's easy to rebase:
|
|
||||||
|
|
||||||
Edit: far too many changes to track... this is old
|
|
||||||
|
|
||||||
- README.md
|
|
||||||
- CONTRIBUTING.md
|
|
||||||
- VOID_USEFUL_LINKS.md
|
|
||||||
- product.json
|
|
||||||
- package.json
|
|
||||||
|
|
||||||
- src/vs/workbench/api/common/{extHost.api.impl.ts | extHostApiCommands.ts}
|
|
||||||
- src/vs/workbench/workbench.common.main.ts
|
|
||||||
- src/vs/workbench/contrib/void/\*
|
|
||||||
- extensions/void/\*
|
|
||||||
|
|
||||||
- .github/\*
|
|
||||||
- .vscode/settings/\*
|
|
||||||
- .eslintrc.json
|
|
||||||
- build/hygiene.js
|
|
||||||
- build/lib/i18n.resources.json
|
|
||||||
- build/npm/dirs.js
|
|
||||||
|
|
||||||
- vscode.proposed.editorInsets.d.ts - not modified, but code copied
|
|
||||||
|
|
||||||
-->
|
|
||||||
@@ -0,0 +1,155 @@
|
|||||||
|
# Contributing to Void
|
||||||
|
### Welcome! 👋
|
||||||
|
This is the official guide on how to contribute to Void. We want to make it as easy as possible to contribute, so if you have any questions or comments, reach out via email or discord!
|
||||||
|
|
||||||
|
There are a few ways to contribute:
|
||||||
|
|
||||||
|
- 💫 Complete items on the [Roadmap](https://github.com/orgs/voideditor/projects/2).
|
||||||
|
- 💡 Make suggestions in our [Discord](https://discord.gg/RSNjgaugJs).
|
||||||
|
- 🪴 Start new Issues - see [Issues](https://github.com/voideditor/void/issues).
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Codebase Guide
|
||||||
|
|
||||||
|
We [highly recommend reading this](https://github.com/voideditor/void/blob/main/VOID_CODEBASE_GUIDE.md) guide that we put together on Void's sourcecode if you'd like to add new features.
|
||||||
|
|
||||||
|
The repo is not as intimidating as it first seems if you read the guide!
|
||||||
|
|
||||||
|
Most of Void's code lives in the folder `src/vs/workbench/contrib/void/`.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## Editing Void's Code
|
||||||
|
|
||||||
|
If you're making changes to Void's code as a contributor, you'll want to run a local version of Void to make sure your changes worked. Developer mode lets you do this. Here's how to use it.
|
||||||
|
|
||||||
|
### a. Mac - Prerequisites
|
||||||
|
|
||||||
|
If you're using a Mac, you need Python and XCode. You probably have these by default.
|
||||||
|
|
||||||
|
### b. Windows - Prerequisites
|
||||||
|
|
||||||
|
If you're using a Windows computer, first get [Visual Studio 2022](https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=Community) (recommended) or [VS Build Tools](https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=BuildTools) (not recommended). If you already have both, you might need to run the next few steps on both of them.
|
||||||
|
|
||||||
|
Go to the "Workloads" tab and select:
|
||||||
|
- `Desktop development with C++`
|
||||||
|
- `Node.js build tools`
|
||||||
|
|
||||||
|
Go to the "Individual Components" tab and select:
|
||||||
|
- `MSVC v143 - VS 2022 C++ x64/x86 Spectre-mitigated libs (Latest)`
|
||||||
|
- `C++ ATL for latest build tools with Spectre Mitigations`
|
||||||
|
- `C++ MFC for latest build tools with Spectre Mitigations`
|
||||||
|
|
||||||
|
Finally, click Install.
|
||||||
|
|
||||||
|
### c. Linux - Prerequisites
|
||||||
|
|
||||||
|
First, run `npm install -g node-gyp`. Then:
|
||||||
|
|
||||||
|
- Debian (Ubuntu, etc): `sudo apt-get install build-essential g++ libx11-dev libxkbfile-dev libsecret-1-dev libkrb5-dev python-is-python3`.
|
||||||
|
- Red Hat (Fedora, etc): `sudo dnf install @development-tools gcc gcc-c++ make libsecret-devel krb5-devel libX11-devel libxkbfile-devel`.
|
||||||
|
- SUSE (openSUSE, etc): `sudo zypper install patterns-devel-C-C++-devel_C_C++ krb5-devel libsecret-devel libxkbfile-devel libX11-devel`.
|
||||||
|
- Others: see [How to Contribute](https://github.com/microsoft/vscode/wiki/How-to-Contribute).
|
||||||
|
|
||||||
|
### Developer Mode Instructions
|
||||||
|
|
||||||
|
Here's how to start changing Void's code. These steps cover everything from cloning Void, to opening a Developer Mode window where you can play around with your updates.
|
||||||
|
|
||||||
|
1. `git clone https://github.com/voideditor/void` to clone the repo.
|
||||||
|
2. `npm install` to install all dependencies.
|
||||||
|
3. Open Void or VSCode, and initialize Developer Mode (this can take ~5 min to finish, it's done when 2 of the 3 spinners turn to check marks):
|
||||||
|
- Windows: Press <kbd>Ctrl+Shift+B</kbd>.
|
||||||
|
- Mac: Press <kbd>Cmd+Shift+B</kbd>.
|
||||||
|
- Linux: Press <kbd>Ctrl+Shift+B</kbd>.
|
||||||
|
4. Open the Void Developer Mode window:
|
||||||
|
- Windows: `./scripts/code.bat`.
|
||||||
|
- Mac: `./scripts/code.sh`.
|
||||||
|
- Linux: `./scripts/code.sh`.
|
||||||
|
5. You're good to start editing Void's code!
|
||||||
|
- You won't see your changes unless you press <kbd>Ctrl+R</kbd> (<kbd>Cmd+R</kbd>) inside the new window to reload. Alternatively, press <kbd>Ctrl+Shift+P</kbd> and `Reload Window`.
|
||||||
|
- You might want to add the flags `--user-data-dir ./.tmp/user-data --extensions-dir ./.tmp/extensions` to the command in step 4, which lets you reset any IDE changes you made by deleting the `.tmp` folder.
|
||||||
|
- You can kill any of the build scripts by pressing `Ctrl+D` in its terminal. If you press `Ctrl+C` the script will close but will keep running in the background.
|
||||||
|
|
||||||
|
If you get any errors, scroll down for common fixes.
|
||||||
|
|
||||||
|
#### Common Fixes
|
||||||
|
|
||||||
|
- Make sure you followed the prerequisite steps above.
|
||||||
|
- Make sure you have Node version `20.18.2` (the version in `.nvmrc`).
|
||||||
|
- You can do this without changing your global Node version using [nvm](https://github.com/nvm-sh/nvm): run `nvm install`, followed by `nvm use` to install the version in `.nvmrc` locally.
|
||||||
|
- Make sure the path to your Void folder does not have any spaces in it.
|
||||||
|
- If you get `"TypeError: Failed to fetch dynamically imported module"`, make sure all imports end with `.js`.
|
||||||
|
- If you get an error with React, try running `NODE_OPTIONS="--max-old-space-size=8192" npm run buildreact`.
|
||||||
|
- If you see missing styles, wait a few seconds and then reload.
|
||||||
|
- If you get errors like `npm error libtool: error: unrecognised option: '-static'`, when running ./scripts/code.sh, make sure you have GNU libtool instead of BSD libtool (BSD is the default in macos)
|
||||||
|
- If you get errors like `The SUID sandbox helper binary was found, but is not configured correctly` when running ./scripts/code.sh, run
|
||||||
|
`sudo chown root:root .build/electron/chrome-sandbox && sudo chmod 4755 .build/electron/chrome-sandbox` and then run `./scripts/code.sh` again.
|
||||||
|
- If you have any other questions, feel free to [submit an issue](https://github.com/voideditor/void/issues/new). You can also refer to VSCode's complete [How to Contribute](https://github.com/microsoft/vscode/wiki/How-to-Contribute) page.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#### Building Void from Terminal
|
||||||
|
|
||||||
|
To build Void from the terminal instead of from inside VSCode, follow the steps above, but instead of pressing <kbd>Cmd+Shift+B</kbd>, run `npm run watch`. The build is done when you see something like this:
|
||||||
|
|
||||||
|
```
|
||||||
|
[watch-extensions] [00:37:39] Finished compilation extensions with 0 errors after 19303 ms
|
||||||
|
[watch-client ] [00:38:06] Finished compilation with 0 errors after 46248 ms
|
||||||
|
[watch-client ] [00:38:07] Starting compilation...
|
||||||
|
[watch-client ] [00:38:07] Finished compilation with 0 errors after 5 ms
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Distributing
|
||||||
|
Void's maintainers distribute Void on our website and in releases. Our build pipeline is a fork of VSCodium, and it works by running GitHub Actions which create the downloadables. The build repo with more instructions lives [here](https://github.com/voideditor/void-builder).
|
||||||
|
|
||||||
|
If you want to completely control Void's build pipeline for your own internal usage, which comes with a lot of time cost (and is typically not recommended), see our [`void-builder`](https://github.com/voideditor/void-builder) repo which builds Void and contains a few important notes about auto-updating and rebasing.
|
||||||
|
|
||||||
|
|
||||||
|
#### Building a Local Executible
|
||||||
|
We don't usually recommend building a local executible of Void - typically you should follow the steps above to distribute a complete executible with the advantages of VSCodium baked-in, or you should just use Developer Mode to run Void locally which is much faster. If you're certain this is what you want, see details below.
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary> Building Locally (not recommended)</summary>
|
||||||
|
If you're certain you want to build a local executible of Void, follow these steps. It can take ~25 minutes.
|
||||||
|
|
||||||
|
Make sure you've already entered Developer Mode with Void first, then run one of the following commands. This will create a folder named `VSCode-darwin-arm64` or similar outside of the void/ repo (see below).
|
||||||
|
|
||||||
|
|
||||||
|
##### Mac
|
||||||
|
- `npm run gulp vscode-darwin-arm64` - most common (Apple Silicon)
|
||||||
|
- `npm run gulp vscode-darwin-x64` (Intel)
|
||||||
|
|
||||||
|
##### Windows
|
||||||
|
- `npm run gulp vscode-win32-x64` - most common
|
||||||
|
- `npm run gulp vscode-win32-arm64`
|
||||||
|
|
||||||
|
##### Linux
|
||||||
|
- `npm run gulp vscode-linux-x64` - most common
|
||||||
|
- `npm run gulp vscode-linux-arm64`
|
||||||
|
|
||||||
|
|
||||||
|
##### Local Executible Output
|
||||||
|
|
||||||
|
The local executible will be located in a folder outside of `void/`:
|
||||||
|
```bash
|
||||||
|
workspace/
|
||||||
|
├── void/ # Your Void fork
|
||||||
|
└── VSCode-darwin-arm64/ # Generated output
|
||||||
|
```
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
|
|
||||||
|
## Pull Request Guidelines
|
||||||
|
|
||||||
|
|
||||||
|
- Please submit a pull request once you've made a change.
|
||||||
|
- No need to submit an Issue unless you're creating a new feature that might involve multiple PRs.
|
||||||
|
- Please don't use AI to write your PR 🙂
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,3 +1,30 @@
|
|||||||
|
## Void is now deprecated.
|
||||||
|
Void is deprecated and no longer accepting contributions.
|
||||||
|
Thank you to everyone who contributed, both with lines of code and support from the community. Void remains open source and is still one of the best references to use when forking VS Code.
|
||||||
|
|
||||||
|
|
||||||
|
## Download
|
||||||
|
|
||||||
|
To view a list of newer Void forks, see [Void Forks](http://github.com/voideditor/void-forks/).
|
||||||
|
|
||||||
|
To download an old version of Void, see [Releases](https://github.com/voideditor/void/releases).
|
||||||
|
|
||||||
|
## Forking VS Code
|
||||||
|
|
||||||
|
If you're forking VS Code, you might still want to reference Void's logic, and see our [Codebase Guide](https://github.com/voideditor/void/blob/main/VOID_CODEBASE_GUIDE.md) and [How to Contribute](https://github.com/voideditor/void/blob/main/HOW_TO_CONTRIBUTE.md).
|
||||||
|
|
||||||
|
- We mount React + Tailwind. This is not possible in plain VS Code, and required extending the build pipeline to compile React and [scope](https://github.com/andrewpareles/scope-tailwind) Tailwind ourselves.
|
||||||
|
|
||||||
|
- You can copy our GitHub Actions to package, sign, and auto-update Void. VS Code's build pipeline is private, so this is normally very hard.
|
||||||
|
|
||||||
|
- Our AI provider code is built from scratch, allowing us to support autocomplete (FIM) and other custom responses. We expose grammars for common `<thinking>` tags, tool tags, etc. Feel free to reference our architecture for using IPC and satisfying CSP.
|
||||||
|
|
||||||
|
- Use our custom services to edit files. EditCodeService lets you show diffs as code streams in, even token by token. VoidModelService lets you edit files in the background and syncs OS files with your text buffers.
|
||||||
|
|
||||||
|
- Everything we've done is 100% open source. See [repos](https://github.com/orgs/voideditor/repositories) for a complete picture of all the repos that make up Void.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Welcome to Void.
|
# Welcome to Void.
|
||||||
|
|
||||||
<div align="center">
|
<div align="center">
|
||||||
@@ -9,31 +36,26 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
Void is the open-source Cursor alternative.
|
Use AI agents on your codebase, checkpoint and visualize changes, and bring any model or host locally. Void sends messages directly to providers without retaining your data.
|
||||||
|
|
||||||
This repo contains the full sourcecode for Void. We are currently in [open beta](https://voideditor.com/email) for Discord members (see the `announcements` channel), with a waitlist for our official release. If you're new, welcome!
|
This repo contains the full sourcecode for Void's Desktop app. If you're new, welcome!
|
||||||
|
|
||||||
- 👋 [Discord](https://discord.gg/RSNjgaugJs)
|
- 🧭 [Website](https://voideditor.com)
|
||||||
|
|
||||||
- 🔨 [Contribute](https://github.com/voideditor/void/blob/main/CONTRIBUTING.md)
|
|
||||||
|
|
||||||
- 🚙 [Roadmap](https://github.com/orgs/voideditor/projects/2)
|
- 🚙 [Roadmap](https://github.com/orgs/voideditor/projects/2)
|
||||||
|
|
||||||
- 📝 [Changelog](https://voideditor.com/changelog)
|
- 🔨 [Contribute](https://github.com/voideditor/void/blob/main/HOW_TO_CONTRIBUTE.md)
|
||||||
|
|
||||||
|
|
||||||
## Contributing
|
|
||||||
|
|
||||||
1. Feel free to attend a weekly meeting in our Discord channel if you'd like to contribute!
|
|
||||||
|
|
||||||
2. To get started working on Void, see [Contributing](https://github.com/voideditor/void/blob/main/CONTRIBUTING.md).
|
|
||||||
|
|
||||||
3. We're open to collaborations and suggestions of all types - just reach out.
|
|
||||||
|
|
||||||
|
|
||||||
## Reference
|
## Reference
|
||||||
|
|
||||||
Void is a fork of the [vscode](https://github.com/microsoft/vscode) repository. For some useful links on VSCode, see [`VOID_USEFUL_LINKS.md`](https://github.com/voideditor/void/blob/main/VOID_USEFUL_LINKS.md).
|
Void is a fork of the [vscode](https://github.com/microsoft/vscode) repository. For a guide to our codebase, see [VOID_CODEBASE_GUIDE](https://github.com/voideditor/void/blob/main/VOID_CODEBASE_GUIDE.md).
|
||||||
|
|
||||||
|
For a guide on how to develop your own version of Void, see [HOW_TO_CONTRIBUTE](https://github.com/voideditor/void/blob/main/HOW_TO_CONTRIBUTE.md) and [void-builder](https://github.com/voideditor/void-builder).
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Support
|
## Support
|
||||||
Feel free to reach out in our Discord or contact us via email: hello@voideditor.com.
|
You can always reach us in our [Discord server](https://discord.gg/RSNjgaugJs) or contact us via email at hello@voideditor.com.
|
||||||
|
|||||||
+191
-31
@@ -4,6 +4,34 @@ This repository incorporates material as listed below or described in the code.
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
---------------------------------------------------------
|
||||||
|
|
||||||
|
@fig/autocomplete-shared 1.1.2
|
||||||
|
https://github.com/withfig/autocomplete-tools
|
||||||
|
|
||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2021 Hercules Labs Inc. (Fig)
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
|
---------------------------------------------------------
|
||||||
|
|
||||||
---------------------------------------------------------
|
---------------------------------------------------------
|
||||||
|
|
||||||
@iktakahiro/markdown-it-katex 4.0.2 - MIT
|
@iktakahiro/markdown-it-katex 4.0.2 - MIT
|
||||||
@@ -58,6 +86,34 @@ SOFTWARE.
|
|||||||
|
|
||||||
---------------------------------------------------------
|
---------------------------------------------------------
|
||||||
|
|
||||||
|
amazon-q-developer-cli f66e0b0e917ab185eef528dc36eca56b78ca8b5d
|
||||||
|
https://github.com/aws/amazon-q-developer-cli
|
||||||
|
|
||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2024 Amazon.com, Inc. or its affiliates.
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
|
---------------------------------------------------------
|
||||||
|
|
||||||
|
---------------------------------------------------------
|
||||||
|
|
||||||
atom/language-clojure 0.22.8 - MIT
|
atom/language-clojure 0.22.8 - MIT
|
||||||
https://github.com/atom/language-clojure
|
https://github.com/atom/language-clojure
|
||||||
|
|
||||||
@@ -169,7 +225,7 @@ OTHER DEALINGS IN THE SOFTWARE.
|
|||||||
|
|
||||||
---------------------------------------------------------
|
---------------------------------------------------------
|
||||||
|
|
||||||
atom/language-sass 0.62.1 - MIT
|
atom/language-sass 0.61.4 - MIT
|
||||||
https://github.com/atom/language-sass
|
https://github.com/atom/language-sass
|
||||||
|
|
||||||
The MIT License (MIT)
|
The MIT License (MIT)
|
||||||
@@ -263,6 +319,34 @@ suitability for any purpose.
|
|||||||
|
|
||||||
---------------------------------------------------------
|
---------------------------------------------------------
|
||||||
|
|
||||||
|
autocomplete 2.684.0 - MIT
|
||||||
|
https://github.com/withfig/autocomplete
|
||||||
|
|
||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2021 Hercules Labs Inc. (Fig)
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
|
---------------------------------------------------------
|
||||||
|
|
||||||
|
---------------------------------------------------------
|
||||||
|
|
||||||
cacheable-request 7.0.4 - MIT
|
cacheable-request 7.0.4 - MIT
|
||||||
|
|
||||||
|
|
||||||
@@ -440,11 +524,11 @@ Title to copyright in this work will at all times remain with copyright holders.
|
|||||||
|
|
||||||
---------------------------------------------------------
|
---------------------------------------------------------
|
||||||
|
|
||||||
dompurify 3.0.5 - Apache 2.0
|
dompurify 3.1.7 - Apache 2.0
|
||||||
https://github.com/cure53/DOMPurify
|
https://github.com/cure53/DOMPurify
|
||||||
|
|
||||||
DOMPurify
|
DOMPurify
|
||||||
Copyright 2024 Dr.-Ing. Mario Heiderich, Cure53
|
Copyright 2025 Dr.-Ing. Mario Heiderich, Cure53
|
||||||
|
|
||||||
DOMPurify is free software; you can redistribute it and/or modify it under the
|
DOMPurify is free software; you can redistribute it and/or modify it under the
|
||||||
terms of either:
|
terms of either:
|
||||||
@@ -1119,7 +1203,34 @@ to the base-name name of the original file, and an extension of txt, html, or si
|
|||||||
|
|
||||||
---------------------------------------------------------
|
---------------------------------------------------------
|
||||||
|
|
||||||
go-syntax 0.7.6 - MIT
|
fish-shell 3.7.1
|
||||||
|
https://github.com/fish-shell/fish-shell
|
||||||
|
|
||||||
|
Fish is a smart and user-friendly command line shell.
|
||||||
|
|
||||||
|
Copyright (C) 2005-2009 Axel Liljencrantz
|
||||||
|
Copyright (C) 2009- fish-shell contributors
|
||||||
|
|
||||||
|
fish is free software.
|
||||||
|
|
||||||
|
Most of fish is licensed under the GNU General Public License version 2, and
|
||||||
|
you can redistribute it and/or modify it under the terms of the GNU GPL as
|
||||||
|
published by the Free Software Foundation.
|
||||||
|
|
||||||
|
fish also includes software licensed under the Python Software Foundation License version 2, the MIT
|
||||||
|
license, and the GNU Library General Public License version 2.
|
||||||
|
|
||||||
|
Full licensing information is contained in doc_src/license.rst.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||||
|
more details.
|
||||||
|
---------------------------------------------------------
|
||||||
|
|
||||||
|
---------------------------------------------------------
|
||||||
|
|
||||||
|
go-syntax 0.7.9 - MIT
|
||||||
https://github.com/worlpaker/go-syntax
|
https://github.com/worlpaker/go-syntax
|
||||||
|
|
||||||
MIT License
|
MIT License
|
||||||
@@ -1167,7 +1278,7 @@ without specific, written prior permission. Title to copyright in this document
|
|||||||
|
|
||||||
---------------------------------------------------------
|
---------------------------------------------------------
|
||||||
|
|
||||||
Ionic documentation 1.2.4 - Apache2
|
Ionic documentation 1.2.4 - Apache-2.0
|
||||||
https://github.com/ionic-team/ionic-site
|
https://github.com/ionic-team/ionic-site
|
||||||
|
|
||||||
Copyright Drifty Co. http://drifty.com/.
|
Copyright Drifty Co. http://drifty.com/.
|
||||||
@@ -1551,7 +1662,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SO
|
|||||||
|
|
||||||
---------------------------------------------------------
|
---------------------------------------------------------
|
||||||
|
|
||||||
language-docker 0.0.0 - Apache2
|
language-docker 0.0.0 - Apache-2.0
|
||||||
https://github.com/moby/moby
|
https://github.com/moby/moby
|
||||||
|
|
||||||
Apache License
|
Apache License
|
||||||
@@ -2017,7 +2128,7 @@ SOFTWARE.
|
|||||||
|
|
||||||
---------------------------------------------------------
|
---------------------------------------------------------
|
||||||
|
|
||||||
microsoft/vscode-mssql 1.23.0 - MIT
|
microsoft/vscode-mssql 1.29.0 - MIT
|
||||||
https://github.com/microsoft/vscode-mssql
|
https://github.com/microsoft/vscode-mssql
|
||||||
|
|
||||||
------------------------------------------ START OF LICENSE -----------------------------------------
|
------------------------------------------ START OF LICENSE -----------------------------------------
|
||||||
@@ -2108,7 +2219,7 @@ SOFTWARE.
|
|||||||
|
|
||||||
---------------------------------------------------------
|
---------------------------------------------------------
|
||||||
|
|
||||||
RedCMD/YAML-Syntax-Highlighter 1.1.2 - MIT
|
RedCMD/YAML-Syntax-Highlighter 1.3.2 - MIT
|
||||||
https://github.com/RedCMD/YAML-Syntax-Highlighter
|
https://github.com/RedCMD/YAML-Syntax-Highlighter
|
||||||
|
|
||||||
MIT License
|
MIT License
|
||||||
@@ -2164,7 +2275,7 @@ suitability for any purpose.
|
|||||||
|
|
||||||
---------------------------------------------------------
|
---------------------------------------------------------
|
||||||
|
|
||||||
REditorSupport/vscode-R 2.8.1 - MIT
|
REditorSupport/vscode-R 2.8.4 - MIT
|
||||||
https://github.com/REditorSupport/vscode-R
|
https://github.com/REditorSupport/vscode-R
|
||||||
|
|
||||||
MIT License
|
MIT License
|
||||||
@@ -2297,6 +2408,55 @@ SOFTWARE.
|
|||||||
|
|
||||||
---------------------------------------------------------
|
---------------------------------------------------------
|
||||||
|
|
||||||
|
Shopify/ruby-lsp 0.0.0 - MIT License
|
||||||
|
https://github.com/Shopify/ruby-lsp
|
||||||
|
|
||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2022-present, Shopify Inc.
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in
|
||||||
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
THE SOFTWARE.
|
||||||
|
|
||||||
|
================================================================================
|
||||||
|
The following files and related configuration in package.json are based on a
|
||||||
|
sequence of adaptions: grammars/ruby.cson.json, grammars/erb.cson.json,
|
||||||
|
languages/erb.json.
|
||||||
|
|
||||||
|
Copyright (c) 2016 Peng Lv
|
||||||
|
Copyright (c) 2017-2019 Stafford Brunk
|
||||||
|
https://github.com/rubyide/vscode-ruby
|
||||||
|
|
||||||
|
Released under the MIT license
|
||||||
|
https://github.com/rubyide/vscode-ruby/blob/main/LICENSE.txt
|
||||||
|
|
||||||
|
Copyright (c) 2014 GitHub Inc.
|
||||||
|
https://github.com/atom/language-ruby
|
||||||
|
|
||||||
|
Released under the MIT license
|
||||||
|
https://github.com/atom/language-ruby/blob/master/LICENSE.md
|
||||||
|
|
||||||
|
https://github.com/textmate/ruby.tmbundle
|
||||||
|
https://github.com/textmate/ruby.tmbundle#license
|
||||||
|
---------------------------------------------------------
|
||||||
|
|
||||||
|
---------------------------------------------------------
|
||||||
|
|
||||||
sumneko/lua.tmbundle 1.0.0 - TextMate Bundle License
|
sumneko/lua.tmbundle 1.0.0 - TextMate Bundle License
|
||||||
https://github.com/sumneko/lua.tmbundle
|
https://github.com/sumneko/lua.tmbundle
|
||||||
|
|
||||||
@@ -2526,26 +2686,6 @@ to the base-name name of the original file, and an extension of txt, html, or si
|
|||||||
|
|
||||||
---------------------------------------------------------
|
---------------------------------------------------------
|
||||||
|
|
||||||
textmate/ruby.tmbundle 0.0.0 - TextMate Bundle License
|
|
||||||
https://github.com/textmate/ruby.tmbundle
|
|
||||||
|
|
||||||
Copyright (c) textmate-ruby.tmbundle project authors
|
|
||||||
|
|
||||||
If not otherwise specified (see below), files in this folder fall under the following license:
|
|
||||||
|
|
||||||
Permission to copy, use, modify, sell and distribute this
|
|
||||||
software is granted. This software is provided "as is" without
|
|
||||||
express or implied warranty, and with no claim as to its
|
|
||||||
suitability for any purpose.
|
|
||||||
|
|
||||||
An exception is made for files in readable text which contain their own license information,
|
|
||||||
or files where an accompanying file exists (in the same directory) with a "-license" suffix added
|
|
||||||
to the base-name name of the original file, and an extension of txt, html, or similar. For example
|
|
||||||
"tidy" is accompanied by "tidy-license.txt".
|
|
||||||
---------------------------------------------------------
|
|
||||||
|
|
||||||
---------------------------------------------------------
|
|
||||||
|
|
||||||
trond-snekvik/vscode-rst 1.5.3 - MIT
|
trond-snekvik/vscode-rst 1.5.3 - MIT
|
||||||
https://github.com/trond-snekvik/vscode-rst
|
https://github.com/trond-snekvik/vscode-rst
|
||||||
|
|
||||||
@@ -3056,7 +3196,7 @@ Creative Commons may be contacted at creativecommons.org.
|
|||||||
|
|
||||||
---------------------------------------------------------
|
---------------------------------------------------------
|
||||||
|
|
||||||
vscode-logfile-highlighter 2.17.0 - MIT
|
vscode-logfile-highlighter 3.3.4 - MIT
|
||||||
https://github.com/emilast/vscode-logfile-highlighter
|
https://github.com/emilast/vscode-logfile-highlighter
|
||||||
|
|
||||||
The MIT License (MIT)
|
The MIT License (MIT)
|
||||||
@@ -3168,7 +3308,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||||||
|
|
||||||
---------------------------------------------------------
|
---------------------------------------------------------
|
||||||
|
|
||||||
Web Background Synchronization - Apache2
|
Web Background Synchronization - Apache-2.0
|
||||||
https://github.com/WICG/background-sync
|
https://github.com/WICG/background-sync
|
||||||
|
|
||||||
Apache License
|
Apache License
|
||||||
@@ -3372,4 +3512,24 @@ Apache License
|
|||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
See the License for the specific language governing permissions and
|
See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
|
---------------------------------------------------------
|
||||||
|
|
||||||
|
---------------------------------------------------------
|
||||||
|
|
||||||
|
zsh 5.9
|
||||||
|
https://github.com/zsh-users/zsh
|
||||||
|
|
||||||
|
Unless otherwise noted in the header of specific files, files in this distribution have the licence shown below.
|
||||||
|
|
||||||
|
However, note that certain shell functions are licensed under versions of the GNU General Public Licence. Anyone distributing the shell as a binary including those files needs to take account of this. Search shell functions for "Copyright" for specific copyright information. None of the core functions are affected by this, so those files may simply be omitted.
|
||||||
|
|
||||||
|
--
|
||||||
|
|
||||||
|
The Z Shell is copyright (c) 1992-2017 Paul Falstad, Richard Coleman, Zoltán Hidvégi, Andrew Main, Peter Stephenson, Sven Wischnowsky, and others. All rights reserved. Individual authors, whether or not specifically named, retain copyright in all changes; in what follows, they are referred to as `the Zsh Development Group'. This is for convenience only and this body has no legal status. The Z shell is distributed under the following licence; any provisions made in individual files take precedence.
|
||||||
|
|
||||||
|
Permission is hereby granted, without written agreement and without licence or royalty fees, to use, copy, modify, and distribute this software and to distribute modified versions of this software for any purpose, provided that the above copyright notice and the following two paragraphs appear in all copies of this software.
|
||||||
|
|
||||||
|
In no event shall the Zsh Development Group be liable to any party for direct, indirect, special, incidental, or consequential damages arising out of the use of this software and its documentation, even if the Zsh Development Group have been advised of the possibility of such damage.
|
||||||
|
|
||||||
|
The Zsh Development Group specifically disclaim any warranties, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose. The software provided hereunder is on an "as is" basis, and the Zsh Development Group have no obligation to provide maintenance, support, updates, enhancements, or modifications.
|
||||||
---------------------------------------------------------
|
---------------------------------------------------------
|
||||||
@@ -0,0 +1,170 @@
|
|||||||
|
# Void Codebase Guide
|
||||||
|
|
||||||
|
The Void codebase is not as intimidating as it seems!
|
||||||
|
|
||||||
|
Most of Void's code lives in the folder `src/vs/workbench/contrib/void/`.
|
||||||
|
|
||||||
|
The purpose of this document is to explain how Void's codebase works. If you want build instructions instead, see [Contributing](https://github.com/voideditor/void/blob/main/HOW_TO_CONTRIBUTE.md).
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## Void Codebase Guide
|
||||||
|
|
||||||
|
### VSCode Rundown
|
||||||
|
Here's a VSCode rundown if you're just getting started with Void. You can also see Microsoft's [wiki](https://github.com/microsoft/vscode/wiki/Source-Code-Organization) for some pictures. VSCode is an Electron app. Electron runs two processes: a **main** process (for internals) and a **browser** process (browser means HTML in general, not just "web browser").
|
||||||
|
<p align="center" >
|
||||||
|
<img src="https://github.com/user-attachments/assets/eef80306-2bfe-4cac-ba15-6156f65ab3bb" alt="Credit - https://github.com/microsoft/vscode/wiki/Source-Code-Organization" width="700px">
|
||||||
|
</p>
|
||||||
|
|
||||||
|
- Code in a `browser/` folder always lives on the browser process, and it can use `window` and other browser items.
|
||||||
|
- Code in an `electron-main/` folder always lives on the main process, and it can import `node_modules`.
|
||||||
|
- Code in `common/` can be used by either process, but doesn't get any special imports.
|
||||||
|
- The browser environment is not allowed to import `node_modules`. We came up with two workarounds:
|
||||||
|
1. Bundle the raw node_module code to the browser - we're doing this for React.
|
||||||
|
2. Implement the code on `electron-main/` and set up a channel between main/browser - we're doing this for sendLLMMessage.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Terminology
|
||||||
|
|
||||||
|
Here's some terminology you might want to know about when working inside VSCode:
|
||||||
|
- An **Editor** is the thing that you type your code in. If you have 10 tabs open, that's just one editor! Editors contain tabs (or "models").
|
||||||
|
- A **Model** is an internal representation of a file's contents. It's shared between editors (for example, if you press `Cmd+\` to make a new editor, then the model of a file like `A.ts` is shared between them. Two editors, one model. That's how changes sync.).
|
||||||
|
- Each model has a **URI** it represents, like `/Users/.../my_file.txt`. (A URI or "resource" is generally just a path).
|
||||||
|
- The **Workbench** is the wrapper that contains all the editors, the terminal, the file system tree, etc.
|
||||||
|
- Usually you use the `ITextModel` type for models and the `ICodeEditor` type for editors. There aren't that many other types.
|
||||||
|
<p align="center" >
|
||||||
|
<img src="https://github.com/user-attachments/assets/6521c228-dc96-4cf5-a673-6b9ca78b9b06" alt="Credit - https://code.visualstudio.com/docs/getstarted/userinterface" width="400px">
|
||||||
|
</p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
- VSCode is organized into "**Services**". A service is just a class that mounts a single time (in computer science theory this is called a "singleton"). You can register services with `registerSingleton` so that you can easily use them in any constructor with `@<Service>`. See _dummyContrib for an example we put together on how to register them. The registration is the same every time.
|
||||||
|
|
||||||
|
- "**Actions**" are functions you register on VSCode so that either you or the user can call them later. They're also called "**Commands**".
|
||||||
|
- You can run actions as a user by pressing Cmd+Shift+P (opens the command pallete), or you can run them internally by using the commandService to call them by ID. We use actions to register keybinding listeners like Cmd+L, Cmd+K, etc. The nice thing about actions is the user can change the keybindings.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Void's LLM Message Pipeline
|
||||||
|
|
||||||
|
Here's a picture of all the dependencies that are relevent between the time you first send a message through Void's sidebar, and the time a request is sent to your provider.
|
||||||
|
Sending LLM messages from the main process avoids CSP issues with local providers and lets us use node_modules more easily.
|
||||||
|
|
||||||
|
|
||||||
|
<div align="center">
|
||||||
|
<img width="100%" src="https://github.com/user-attachments/assets/9cf54dbb-82c4-4488-97a2-bd8dea890b50">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
**Notes:** `modelCapabilities` is an important file that must be updated when new models come out!
|
||||||
|
|
||||||
|
|
||||||
|
### Apply
|
||||||
|
|
||||||
|
Void has two types of Apply: **Fast Apply** (uses Search/Replace, see below), and **Slow Apply** (rewrites whole file).
|
||||||
|
|
||||||
|
When you click Apply and Fast Apply is enabled, we prompt the LLM to output Search/Replace block(s) like this:
|
||||||
|
```
|
||||||
|
<<<<<<< ORIGINAL
|
||||||
|
// original code goes here
|
||||||
|
=======
|
||||||
|
// replaced code goes here
|
||||||
|
>>>>>>> UPDATED
|
||||||
|
```
|
||||||
|
This is what allows Void to quickly apply code even on 1000-line files. It's the same as asking the LLM to press Ctrl+F and enter in a search/replace query.
|
||||||
|
|
||||||
|
### Apply Inner Workings
|
||||||
|
|
||||||
|
The `editCodeService` file runs Apply. The same exact code is also used when the LLM calls the Edit tool, and when you submit Cmd+K. Just different versions of Fast/Slow Apply mode.
|
||||||
|
|
||||||
|
Here is some important terminology:
|
||||||
|
- A **DiffZone** is a {startLine, endLine} region of text where we compute and show red/green areas, or **Diffs**. When any changes are made to a file, we loop through all the DiffAreas on that file and refresh its Diffs.
|
||||||
|
- A **DiffArea** is a generalization that just tracks line numbers like a DiffZone.
|
||||||
|
- The only type of DiffArea that can "stream" is a DiffZone. Each DiffZone has an llmCancelToken if it's streaming.
|
||||||
|
|
||||||
|
How Apply works:
|
||||||
|
- When you click Apply, we create a **DiffZone** over that the full file so that any changes that the LLM makes will show up in red/green. We then stream the change.
|
||||||
|
- When an LLM calls Edit, it's really calling Apply.
|
||||||
|
- When you submit Cmd+K, it's the same as Apply except we create a smaller DiffZone (not on the whole file).
|
||||||
|
|
||||||
|
|
||||||
|
### Writing Files Inner Workings
|
||||||
|
When Void wants to change your code, it just writes to a text model. This means all you need to know to write to a file is its URI - you don't have to load it, save it, etc. There are some annoying background URI/model things to think about to get this to work, but we handled them all in `voidModelService`.
|
||||||
|
|
||||||
|
### Void Settings Inner Workings
|
||||||
|
We have a service `voidSettingsService` that stores all your Void settings (providers, models, global Void settings, etc). Imagine this as an implicit dependency for any of the core Void services:
|
||||||
|
|
||||||
|
<div align="center">
|
||||||
|
<img width="800" src="https://github.com/user-attachments/assets/9f3cb68c-a61b-4810-8429-bb90b992b3fa">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
Here's a guide to some of the terminology we're using:
|
||||||
|
- **FeatureName**: Autocomplete | Chat | CtrlK | Apply
|
||||||
|
- **ModelSelection**: a {providerName, modelName} pair.
|
||||||
|
- **ProviderName**: The name of a provider: `'ollama'`, `'openAI'`, etc.
|
||||||
|
- **ModelName**: The name of a model (string type, eg `'gpt-4o'`).
|
||||||
|
- **RefreshProvider**: a provider that we ping repeatedly to update the models list.
|
||||||
|
- **ChatMode** = normal | gather | agent
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Approval State
|
||||||
|
`editCodeService`'s data structures contain all the information about changes that the user needs to review. However, they don't store that information in a useful format. We wrote the following service to get a more useful derived state:
|
||||||
|
|
||||||
|
<div align="center">
|
||||||
|
<img width="600" src="https://github.com/user-attachments/assets/f3645355-dff6-467c-bc38-ffe52077c08b">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Build process
|
||||||
|
If you want to know how our build pipeline works, see our build repo [here](https://github.com/voideditor/void-builder).
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## VSCode Codebase Guide
|
||||||
|
|
||||||
|
For additional references, the Void team put together this list of links to get up and running with VSCode.
|
||||||
|
<details>
|
||||||
|
|
||||||
|
|
||||||
|
#### Links for Beginners
|
||||||
|
|
||||||
|
- [VSCode UI guide](https://code.visualstudio.com/docs/getstarted/userinterface) - covers auxbar, panels, etc.
|
||||||
|
- [UX guide](https://code.visualstudio.com/api/ux-guidelines/overview) - covers Containers, Views, Items, etc.
|
||||||
|
|
||||||
|
#### Links for Contributors
|
||||||
|
|
||||||
|
- [How VSCode's sourcecode is organized](https://github.com/microsoft/vscode/wiki/Source-Code-Organization) - this explains where the entry point files are, what `browser/` and `common/` mean, etc. This is the most important read on this whole list! We recommend reading the whole thing.
|
||||||
|
- [Built-in VSCode styles](https://code.visualstudio.com/api/references/theme-color) - CSS variables that are built into VSCode. Use `var(--vscode-{theme but replacing . with -})`. You can also see their [Webview theming guide](https://code.visualstudio.com/api/extension-guides/webview#theming-webview-content).
|
||||||
|
|
||||||
|
|
||||||
|
#### Misc
|
||||||
|
|
||||||
|
- [Every command](https://code.visualstudio.com/api/references/commands) built-in to VSCode - not used often, but here for reference.
|
||||||
|
- Note: VSCode's repo is the source code for the Monaco editor! An "editor" is a Monaco editor, and it shares the code for ITextModel, etc.
|
||||||
|
|
||||||
|
|
||||||
|
#### VSCode's Extension API
|
||||||
|
|
||||||
|
Void is no longer an extension, so these links are no longer required, but they might be useful if we ever build an extension again.
|
||||||
|
|
||||||
|
- [Files you need in an extension](https://code.visualstudio.com/api/get-started/extension-anatomy).
|
||||||
|
- [An extension's `package.json` schema](https://code.visualstudio.com/api/references/extension-manifest).
|
||||||
|
- ["Contributes" Guide](https://code.visualstudio.com/api/references/contribution-points) - the `"contributes"` part of `package.json` is how an extension mounts.
|
||||||
|
- [The Full VSCode Extension API](https://code.visualstudio.com/api/references/vscode-api) - look on the right side for organization. The [bottom](https://code.visualstudio.com/api/references/vscode-api#api-patterns) of the page is easy to miss but is useful - cancellation tokens, events, disposables.
|
||||||
|
- [Activation events](https://code.visualstudio.com/api/references/activation-events) you can define in `package.json` (not the most useful).
|
||||||
|
|
||||||
|
|
||||||
|
</details>
|
||||||
@@ -1,37 +0,0 @@
|
|||||||
# Useful links
|
|
||||||
|
|
||||||
The Void team put together this list of links to get up and running with VSCode's sourcecode. We hope it's helpful!
|
|
||||||
|
|
||||||
## Contributing
|
|
||||||
|
|
||||||
- [How VSCode's sourcecode is organized](https://github.com/microsoft/vscode/wiki/Source-Code-Organization) - this explains where the entry point files are, what `browser/` and `common/` mean, etc. This is the most important read on this whole list! We recommend reading the whole thing.
|
|
||||||
|
|
||||||
- [Built-in VSCode styles](https://code.visualstudio.com/api/references/theme-color) - CSS variables that are built into VSCode. Use `var(--vscode-{theme but replacing . with -})`. You can also see their [Webview theming guide](https://code.visualstudio.com/api/extension-guides/webview#theming-webview-content).
|
|
||||||
|
|
||||||
## Beginners / Getting started
|
|
||||||
|
|
||||||
- [VSCode UI guide](https://code.visualstudio.com/docs/getstarted/userinterface) - covers auxbar, panels, etc.
|
|
||||||
|
|
||||||
- [UX guide](https://code.visualstudio.com/api/ux-guidelines/overview) - covers Containers, Views, Items, etc.
|
|
||||||
|
|
||||||
|
|
||||||
## Misc
|
|
||||||
|
|
||||||
- [Every command](https://code.visualstudio.com/api/references/commands) built-in to VSCode - not used often, but here for reference.
|
|
||||||
|
|
||||||
|
|
||||||
## VSCode's Extension API
|
|
||||||
|
|
||||||
Void is no longer an extension, so these links are no longer required, but they might be useful if we ever build an extension again.
|
|
||||||
|
|
||||||
- [Files you need in an extension](https://code.visualstudio.com/api/get-started/extension-anatomy).
|
|
||||||
|
|
||||||
- [An extension's `package.json` schema](https://code.visualstudio.com/api/references/extension-manifest).
|
|
||||||
|
|
||||||
- ["Contributes" Guide](https://code.visualstudio.com/api/references/contribution-points) - the `"contributes"` part of `package.json` is how an extension mounts.
|
|
||||||
|
|
||||||
- [The Full VSCode Extension API](https://code.visualstudio.com/api/references/vscode-api) - look on the right side for organization. The [bottom](https://code.visualstudio.com/api/references/vscode-api#api-patterns) of the page is easy to miss but is useful - cancellation tokens, events, disposables.
|
|
||||||
|
|
||||||
- [Activation events](https://code.visualstudio.com/api/references/activation-events) you can define in `package.json` (not the most useful).
|
|
||||||
|
|
||||||
|
|
||||||
+1
-1
@@ -1 +1 @@
|
|||||||
2024-09-04T10:21:29.952Z
|
2024-12-11T00:28:56.838Z
|
||||||
|
|||||||
+14
-9
@@ -55,6 +55,12 @@ fsevents/test/**
|
|||||||
@vscode/windows-registry/build/**
|
@vscode/windows-registry/build/**
|
||||||
!@vscode/windows-registry/build/Release/*.node
|
!@vscode/windows-registry/build/Release/*.node
|
||||||
|
|
||||||
|
@vscode/tree-sitter-wasm/wasm/tree-sitter-*.wasm
|
||||||
|
!@vscode/tree-sitter-wasm/wasm/tree-sitter-typescript.wasm
|
||||||
|
!@vscode/tree-sitter-wasm/wasm/tree-sitter-regex.wasm
|
||||||
|
!@vscode/tree-sitter-wasm/wasm/tree-sitter-ini.wasm
|
||||||
|
!@vscode/tree-sitter-wasm/wasm/tree-sitter-css.wasm
|
||||||
|
|
||||||
native-keymap/binding.gyp
|
native-keymap/binding.gyp
|
||||||
native-keymap/build/**
|
native-keymap/build/**
|
||||||
native-keymap/src/**
|
native-keymap/src/**
|
||||||
@@ -110,15 +116,13 @@ node-pty/third_party/**
|
|||||||
@parcel/watcher/src/**
|
@parcel/watcher/src/**
|
||||||
!@parcel/watcher/build/Release/*.node
|
!@parcel/watcher/build/Release/*.node
|
||||||
|
|
||||||
vsda/build/**
|
vsda/**
|
||||||
vsda/ci/**
|
!vsda/index.js
|
||||||
vsda/src/**
|
!vsda/index.d.ts
|
||||||
vsda/.gitignore
|
!vsda/package.json
|
||||||
vsda/binding.gyp
|
|
||||||
vsda/README.md
|
|
||||||
vsda/SECURITY.md
|
|
||||||
vsda/targets
|
|
||||||
!vsda/build/Release/vsda.node
|
!vsda/build/Release/vsda.node
|
||||||
|
!vsda/rust/web/**
|
||||||
|
!vsda/rust/bundler/**
|
||||||
|
|
||||||
@vscode/policy-watcher/build/**
|
@vscode/policy-watcher/build/**
|
||||||
@vscode/policy-watcher/.husky/**
|
@vscode/policy-watcher/.husky/**
|
||||||
@@ -132,6 +136,7 @@ vsda/targets
|
|||||||
!@vscode/windows-ca-certs/package.json
|
!@vscode/windows-ca-certs/package.json
|
||||||
!@vscode/windows-ca-certs/**/*.node
|
!@vscode/windows-ca-certs/**/*.node
|
||||||
|
|
||||||
|
@vscode/node-addon-api/**/*
|
||||||
node-addon-api/**/*
|
node-addon-api/**/*
|
||||||
prebuild-install/**/*
|
prebuild-install/**/*
|
||||||
|
|
||||||
@@ -163,7 +168,7 @@ typescript/lib/tsserverlibrary.js
|
|||||||
|
|
||||||
jschardet/index.js
|
jschardet/index.js
|
||||||
jschardet/src/**
|
jschardet/src/**
|
||||||
# TODO@esm uncomment when we can use jschardet.min.js again jschardet/dist/jschardet.js
|
jschardet/dist/jschardet.js
|
||||||
|
|
||||||
es6-promise/lib/**
|
es6-promise/lib/**
|
||||||
|
|
||||||
|
|||||||
@@ -2,4 +2,5 @@ disturl="https://nodejs.org/dist"
|
|||||||
runtime="node"
|
runtime="node"
|
||||||
build_from_source="true"
|
build_from_source="true"
|
||||||
legacy-peer-deps="true"
|
legacy-peer-deps="true"
|
||||||
|
force_process_config="true"
|
||||||
timeout=180000
|
timeout=180000
|
||||||
|
|||||||
+4
-1
@@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
jschardet/index.js
|
jschardet/index.js
|
||||||
jschardet/src/**
|
jschardet/src/**
|
||||||
# TODO@esm uncomment when we can use jschardet.min.js again jschardet/dist/jschardet.js
|
jschardet/dist/jschardet.js
|
||||||
|
|
||||||
vscode-textmate/webpack.config.js
|
vscode-textmate/webpack.config.js
|
||||||
|
|
||||||
@@ -26,6 +26,9 @@ vscode-textmate/webpack.config.js
|
|||||||
@xterm/addon-image/src/**
|
@xterm/addon-image/src/**
|
||||||
@xterm/addon-image/out/**
|
@xterm/addon-image/out/**
|
||||||
|
|
||||||
|
@xterm/addon-ligatures/src/**
|
||||||
|
@xterm/addon-ligatures/out/**
|
||||||
|
|
||||||
@xterm/addon-search/src/**
|
@xterm/addon-search/src/**
|
||||||
@xterm/addon-search/out/**
|
@xterm/addon-search/out/**
|
||||||
@xterm/addon-search/fixtures/**
|
@xterm/addon-search/fixtures/**
|
||||||
|
|||||||
@@ -19,13 +19,15 @@ steps:
|
|||||||
nodejsMirror: https://github.com/joaomoreno/node-mirror/releases/download
|
nodejsMirror: https://github.com/joaomoreno/node-mirror/releases/download
|
||||||
|
|
||||||
- ${{ if ne(parameters.VSCODE_QUALITY, 'oss') }}:
|
- ${{ if ne(parameters.VSCODE_QUALITY, 'oss') }}:
|
||||||
|
- template: ../cli/cli-apply-patches.yml@self
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
set -e
|
set -e
|
||||||
npm ci
|
npm ci
|
||||||
workingDirectory: build
|
workingDirectory: build
|
||||||
displayName: Install pipeline build
|
env:
|
||||||
|
GITHUB_TOKEN: "$(github-distro-mixin-password)"
|
||||||
- template: ../cli/cli-apply-patches.yml@self
|
displayName: Install build dependencies
|
||||||
|
|
||||||
- task: Npm@1
|
- task: Npm@1
|
||||||
displayName: Download openssl prebuilt
|
displayName: Download openssl prebuilt
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ steps:
|
|||||||
- task: AzureKeyVault@2
|
- task: AzureKeyVault@2
|
||||||
displayName: "Azure Key Vault: Get Secrets"
|
displayName: "Azure Key Vault: Get Secrets"
|
||||||
inputs:
|
inputs:
|
||||||
azureSubscription: "vscode-builds-subscription"
|
azureSubscription: vscode
|
||||||
KeyVaultName: vscode-build-secrets
|
KeyVaultName: vscode-build-secrets
|
||||||
SecretsFilter: "github-distro-mixin-password"
|
SecretsFilter: "github-distro-mixin-password"
|
||||||
|
|
||||||
@@ -59,7 +59,7 @@ steps:
|
|||||||
|
|
||||||
- task: Docker@1
|
- task: Docker@1
|
||||||
inputs:
|
inputs:
|
||||||
azureSubscriptionEndpoint: "vscode-builds-subscription"
|
azureSubscriptionEndpoint: vscode
|
||||||
azureContainerRegistry: vscodehub.azurecr.io
|
azureContainerRegistry: vscodehub.azurecr.io
|
||||||
command: "Run an image"
|
command: "Run an image"
|
||||||
imageName: "vscode-linux-build-agent:alpine-$(VSCODE_ARCH)"
|
imageName: "vscode-linux-build-agent:alpine-$(VSCODE_ARCH)"
|
||||||
@@ -73,6 +73,7 @@ steps:
|
|||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
for i in {1..5}; do # try 5 times
|
for i in {1..5}; do # try 5 times
|
||||||
npm ci && break
|
npm ci && break
|
||||||
if [ $i -eq 5 ]; then
|
if [ $i -eq 5 ]; then
|
||||||
|
|||||||
@@ -42,7 +42,6 @@ steps:
|
|||||||
- script: |
|
- script: |
|
||||||
set -e
|
set -e
|
||||||
if [ -n "$SYSROOT_ARCH" ]; then
|
if [ -n "$SYSROOT_ARCH" ]; then
|
||||||
export VSCODE_SYSROOT_PREFIX='-glibc-2.17'
|
|
||||||
export VSCODE_SYSROOT_DIR=$(Build.SourcesDirectory)/.build/sysroots
|
export VSCODE_SYSROOT_DIR=$(Build.SourcesDirectory)/.build/sysroots
|
||||||
node -e '(async () => { const { getVSCodeSysroot } = require("../build/linux/debian/install-sysroot.js"); await getVSCodeSysroot(process.env["SYSROOT_ARCH"]); })()'
|
node -e '(async () => { const { getVSCodeSysroot } = require("../build/linux/debian/install-sysroot.js"); await getVSCodeSysroot(process.env["SYSROOT_ARCH"]); })()'
|
||||||
if [ "$SYSROOT_ARCH" == "arm64" ]; then
|
if [ "$SYSROOT_ARCH" == "arm64" ]; then
|
||||||
@@ -73,7 +72,7 @@ steps:
|
|||||||
|
|
||||||
# verify glibc requirement
|
# verify glibc requirement
|
||||||
if [ -n "$SYSROOT_ARCH" ]; then
|
if [ -n "$SYSROOT_ARCH" ]; then
|
||||||
glibc_version="2.17"
|
glibc_version="2.28"
|
||||||
while IFS= read -r line; do
|
while IFS= read -r line; do
|
||||||
if [[ $line == *"GLIBC_"* ]]; then
|
if [[ $line == *"GLIBC_"* ]]; then
|
||||||
version=$(echo "$line" | awk '{print $5}' | tr -d '()')
|
version=$(echo "$line" | awk '{print $5}' | tr -d '()')
|
||||||
@@ -83,8 +82,8 @@ steps:
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done < <("$OBJDUMP" -T "$PWD/target/${{ parameters.VSCODE_CLI_TARGET }}/release/code")
|
done < <("$OBJDUMP" -T "$PWD/target/${{ parameters.VSCODE_CLI_TARGET }}/release/code")
|
||||||
if [[ "$glibc_version" != "2.17" ]]; then
|
if [[ "$glibc_version" != "2.28" ]]; then
|
||||||
echo "Error: binary has dependency on GLIBC > 2.17, found $glibc_version"
|
echo "Error: binary has dependency on GLIBC > 2.28, found $glibc_version"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@@ -108,6 +107,18 @@ steps:
|
|||||||
${{ pair.key }}: ${{ pair.value }}
|
${{ pair.key }}: ${{ pair.value }}
|
||||||
|
|
||||||
- ${{ if contains(parameters.VSCODE_CLI_TARGET, '-windows-') }}:
|
- ${{ if contains(parameters.VSCODE_CLI_TARGET, '-windows-') }}:
|
||||||
|
- task: PublishSymbols@2
|
||||||
|
inputs:
|
||||||
|
IndexSources: false
|
||||||
|
SymbolsFolder: $(Build.SourcesDirectory)/cli/target/${{ parameters.VSCODE_CLI_TARGET }}/release
|
||||||
|
SearchPattern: 'code.pdb'
|
||||||
|
SymbolServerType: TeamServices
|
||||||
|
SymbolsProduct: 'code'
|
||||||
|
ArtifactServices.Symbol.AccountName: microsoft
|
||||||
|
ArtifactServices.Symbol.PAT: $(System.AccessToken)
|
||||||
|
ArtifactServices.Symbol.UseAAD: false
|
||||||
|
displayName: Publish Symbols
|
||||||
|
|
||||||
- powershell: |
|
- powershell: |
|
||||||
. build/azure-pipelines/win32/exec.ps1
|
. build/azure-pipelines/win32/exec.ps1
|
||||||
$ErrorActionPreference = "Stop"
|
$ErrorActionPreference = "Stop"
|
||||||
|
|||||||
@@ -4,20 +4,21 @@ parameters:
|
|||||||
default: []
|
default: []
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- task: AzureKeyVault@2
|
|
||||||
displayName: "Azure Key Vault: Get Secrets"
|
|
||||||
inputs:
|
|
||||||
azureSubscription: "vscode-builds-subscription"
|
|
||||||
KeyVaultName: vscode-build-secrets
|
|
||||||
SecretsFilter: "ESRP-PKI,esrp-aad-username,esrp-aad-password"
|
|
||||||
|
|
||||||
- task: UseDotNet@2
|
- task: UseDotNet@2
|
||||||
inputs:
|
inputs:
|
||||||
version: 6.x
|
version: 6.x
|
||||||
|
|
||||||
- task: EsrpClientTool@1
|
- task: EsrpCodeSigning@5
|
||||||
continueOnError: true
|
inputs:
|
||||||
displayName: Download ESRPClient
|
UseMSIAuthentication: true
|
||||||
|
ConnectedServiceName: vscode-esrp
|
||||||
|
AppRegistrationClientId: $(ESRP_CLIENT_ID)
|
||||||
|
AppRegistrationTenantId: $(ESRP_TENANT_ID)
|
||||||
|
AuthAKVName: vscode-esrp
|
||||||
|
AuthSignCertName: esrp-sign
|
||||||
|
FolderPath: .
|
||||||
|
Pattern: noop
|
||||||
|
displayName: 'Install ESRP Tooling'
|
||||||
|
|
||||||
- ${{ each target in parameters.VSCODE_CLI_ARTIFACTS }}:
|
- ${{ each target in parameters.VSCODE_CLI_ARTIFACTS }}:
|
||||||
- task: DownloadPipelineArtifact@2
|
- task: DownloadPipelineArtifact@2
|
||||||
@@ -32,10 +33,14 @@ steps:
|
|||||||
archiveFilePatterns: $(Build.ArtifactStagingDirectory)/pkg/${{ target }}/*.zip
|
archiveFilePatterns: $(Build.ArtifactStagingDirectory)/pkg/${{ target }}/*.zip
|
||||||
destinationFolder: $(Build.ArtifactStagingDirectory)/sign/${{ target }}
|
destinationFolder: $(Build.ArtifactStagingDirectory)/sign/${{ target }}
|
||||||
|
|
||||||
- script: node build/azure-pipelines/common/sign $(Agent.ToolsDirectory)/esrpclient/*/*/net6.0/esrpcli.dll sign-darwin $(ESRP-PKI) $(esrp-aad-username) $(esrp-aad-password) $(Build.ArtifactStagingDirectory)/pkg "*.zip"
|
- script: node build/azure-pipelines/common/sign $(Agent.RootDirectory)/_tasks/EsrpCodeSigning_*/*/net6.0/esrpcli.dll sign-darwin $(Build.ArtifactStagingDirectory)/pkg "*.zip"
|
||||||
|
env:
|
||||||
|
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
|
||||||
displayName: Codesign
|
displayName: Codesign
|
||||||
|
|
||||||
- script: node build/azure-pipelines/common/sign $(Agent.ToolsDirectory)/esrpclient/*/*/net6.0/esrpcli.dll notarize-darwin $(ESRP-PKI) $(esrp-aad-username) $(esrp-aad-password) $(Build.ArtifactStagingDirectory)/pkg "*.zip"
|
- script: node build/azure-pipelines/common/sign $(Agent.RootDirectory)/_tasks/EsrpCodeSigning_*/*/net6.0/esrpcli.dll notarize-darwin $(Build.ArtifactStagingDirectory)/pkg "*.zip"
|
||||||
|
env:
|
||||||
|
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
|
||||||
displayName: Notarize
|
displayName: Notarize
|
||||||
|
|
||||||
- ${{ each target in parameters.VSCODE_CLI_ARTIFACTS }}:
|
- ${{ each target in parameters.VSCODE_CLI_ARTIFACTS }}:
|
||||||
|
|||||||
@@ -4,19 +4,29 @@ parameters:
|
|||||||
default: []
|
default: []
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- task: AzureKeyVault@2
|
|
||||||
displayName: "Azure Key Vault: Get Secrets"
|
|
||||||
inputs:
|
|
||||||
azureSubscription: "vscode-builds-subscription"
|
|
||||||
KeyVaultName: vscode-build-secrets
|
|
||||||
SecretsFilter: "ESRP-PKI,esrp-aad-username,esrp-aad-password"
|
|
||||||
|
|
||||||
- task: UseDotNet@2
|
- task: UseDotNet@2
|
||||||
inputs:
|
inputs:
|
||||||
version: 6.x
|
version: 6.x
|
||||||
|
|
||||||
- task: EsrpClientTool@1
|
- task: EsrpCodeSigning@5
|
||||||
displayName: "Use ESRP client"
|
inputs:
|
||||||
|
UseMSIAuthentication: true
|
||||||
|
ConnectedServiceName: vscode-esrp
|
||||||
|
AppRegistrationClientId: $(ESRP_CLIENT_ID)
|
||||||
|
AppRegistrationTenantId: $(ESRP_TENANT_ID)
|
||||||
|
AuthAKVName: vscode-esrp
|
||||||
|
AuthSignCertName: esrp-sign
|
||||||
|
FolderPath: .
|
||||||
|
Pattern: noop
|
||||||
|
displayName: 'Install ESRP Tooling'
|
||||||
|
|
||||||
|
- powershell: |
|
||||||
|
. build/azure-pipelines/win32/exec.ps1
|
||||||
|
$ErrorActionPreference = "Stop"
|
||||||
|
$EsrpCodeSigningTool = (gci -directory -filter EsrpCodeSigning_* $(Agent.RootDirectory)\_tasks | Select-Object -last 1).FullName
|
||||||
|
$Version = (gci -directory $EsrpCodeSigningTool | Select-Object -last 1).FullName
|
||||||
|
echo "##vso[task.setvariable variable=EsrpCliDllPath]$Version\net6.0\esrpcli.dll"
|
||||||
|
displayName: Find ESRP CLI
|
||||||
|
|
||||||
- ${{ each target in parameters.VSCODE_CLI_ARTIFACTS }}:
|
- ${{ each target in parameters.VSCODE_CLI_ARTIFACTS }}:
|
||||||
- task: DownloadPipelineArtifact@2
|
- task: DownloadPipelineArtifact@2
|
||||||
@@ -31,18 +41,9 @@ steps:
|
|||||||
archiveFilePatterns: $(Build.ArtifactStagingDirectory)/pkg/${{ target }}/*.zip
|
archiveFilePatterns: $(Build.ArtifactStagingDirectory)/pkg/${{ target }}/*.zip
|
||||||
destinationFolder: $(Build.ArtifactStagingDirectory)/sign/${{ target }}
|
destinationFolder: $(Build.ArtifactStagingDirectory)/sign/${{ target }}
|
||||||
|
|
||||||
- powershell: |
|
- powershell: node build\azure-pipelines\common\sign $env:EsrpCliDllPath sign-windows $(Build.ArtifactStagingDirectory)/sign "*.exe"
|
||||||
. build/azure-pipelines/win32/exec.ps1
|
env:
|
||||||
$ErrorActionPreference = "Stop"
|
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
|
||||||
$EsrpClientTool = (gci -directory -filter EsrpClientTool_* $(Agent.RootDirectory)\_tasks | Select-Object -last 1).FullName
|
|
||||||
$EsrpCliZip = (gci -recurse -filter esrpcli.*.zip $EsrpClientTool | Select-Object -last 1).FullName
|
|
||||||
mkdir -p $(Agent.TempDirectory)\esrpcli
|
|
||||||
Expand-Archive -Path $EsrpCliZip -DestinationPath $(Agent.TempDirectory)\esrpcli
|
|
||||||
$EsrpCliDllPath = (gci -recurse -filter esrpcli.dll $(Agent.TempDirectory)\esrpcli | Select-Object -last 1).FullName
|
|
||||||
echo "##vso[task.setvariable variable=EsrpCliDllPath]$EsrpCliDllPath"
|
|
||||||
displayName: Find ESRP CLI
|
|
||||||
|
|
||||||
- powershell: node build\azure-pipelines\common\sign $env:EsrpCliDllPath sign-windows $(ESRP-PKI) $(esrp-aad-username) $(esrp-aad-password) $(Build.ArtifactStagingDirectory)/sign "*.exe"
|
|
||||||
displayName: Codesign
|
displayName: Codesign
|
||||||
|
|
||||||
- ${{ each target in parameters.VSCODE_CLI_ARTIFACTS }}:
|
- ${{ each target in parameters.VSCODE_CLI_ARTIFACTS }}:
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
parameters:
|
parameters:
|
||||||
- name: channel
|
- name: channel
|
||||||
type: string
|
type: string
|
||||||
default: 1.81
|
default: 1.85
|
||||||
- name: targets
|
- name: targets
|
||||||
default: []
|
default: []
|
||||||
type: object
|
type: object
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
parameters:
|
parameters:
|
||||||
- name: channel
|
- name: channel
|
||||||
type: string
|
type: string
|
||||||
default: 1.81
|
default: 1.85
|
||||||
- name: targets
|
- name: targets
|
||||||
default: []
|
default: []
|
||||||
type: object
|
type: object
|
||||||
|
|||||||
@@ -3,12 +3,15 @@
|
|||||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||||
*--------------------------------------------------------------------------------------------*/
|
*--------------------------------------------------------------------------------------------*/
|
||||||
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||||
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||||
|
};
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
const fs = require("fs");
|
const fs_1 = __importDefault(require("fs"));
|
||||||
const path = require("path");
|
const path_1 = __importDefault(require("path"));
|
||||||
const crypto = require("crypto");
|
const crypto_1 = __importDefault(require("crypto"));
|
||||||
const productjson = JSON.parse(fs.readFileSync(path.join(__dirname, '../../../product.json'), 'utf8'));
|
const productjson = JSON.parse(fs_1.default.readFileSync(path_1.default.join(__dirname, '../../../product.json'), 'utf8'));
|
||||||
const shasum = crypto.createHash('sha256');
|
const shasum = crypto_1.default.createHash('sha256');
|
||||||
for (const ext of productjson.builtInExtensions) {
|
for (const ext of productjson.builtInExtensions) {
|
||||||
shasum.update(`${ext.name}@${ext.version}`);
|
shasum.update(`${ext.name}@${ext.version}`);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,9 +3,9 @@
|
|||||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||||
*--------------------------------------------------------------------------------------------*/
|
*--------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
import * as fs from 'fs';
|
import fs from 'fs';
|
||||||
import * as path from 'path';
|
import path from 'path';
|
||||||
import * as crypto from 'crypto';
|
import crypto from 'crypto';
|
||||||
|
|
||||||
const productjson = JSON.parse(fs.readFileSync(path.join(__dirname, '../../../product.json'), 'utf8'));
|
const productjson = JSON.parse(fs.readFileSync(path.join(__dirname, '../../../product.json'), 'utf8'));
|
||||||
const shasum = crypto.createHash('sha256');
|
const shasum = crypto.createHash('sha256');
|
||||||
|
|||||||
@@ -3,21 +3,24 @@
|
|||||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||||
*--------------------------------------------------------------------------------------------*/
|
*--------------------------------------------------------------------------------------------*/
|
||||||
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||||
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||||
|
};
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
const fs = require("fs");
|
const fs_1 = __importDefault(require("fs"));
|
||||||
const path = require("path");
|
const path_1 = __importDefault(require("path"));
|
||||||
const crypto = require("crypto");
|
const crypto_1 = __importDefault(require("crypto"));
|
||||||
const { dirs } = require('../../npm/dirs');
|
const { dirs } = require('../../npm/dirs');
|
||||||
const ROOT = path.join(__dirname, '../../../');
|
const ROOT = path_1.default.join(__dirname, '../../../');
|
||||||
const shasum = crypto.createHash('sha256');
|
const shasum = crypto_1.default.createHash('sha256');
|
||||||
shasum.update(fs.readFileSync(path.join(ROOT, 'build/.cachesalt')));
|
shasum.update(fs_1.default.readFileSync(path_1.default.join(ROOT, 'build/.cachesalt')));
|
||||||
shasum.update(fs.readFileSync(path.join(ROOT, '.npmrc')));
|
shasum.update(fs_1.default.readFileSync(path_1.default.join(ROOT, '.npmrc')));
|
||||||
shasum.update(fs.readFileSync(path.join(ROOT, 'build', '.npmrc')));
|
shasum.update(fs_1.default.readFileSync(path_1.default.join(ROOT, 'build', '.npmrc')));
|
||||||
shasum.update(fs.readFileSync(path.join(ROOT, 'remote', '.npmrc')));
|
shasum.update(fs_1.default.readFileSync(path_1.default.join(ROOT, 'remote', '.npmrc')));
|
||||||
// Add `package.json` and `package-lock.json` files
|
// Add `package.json` and `package-lock.json` files
|
||||||
for (const dir of dirs) {
|
for (const dir of dirs) {
|
||||||
const packageJsonPath = path.join(ROOT, dir, 'package.json');
|
const packageJsonPath = path_1.default.join(ROOT, dir, 'package.json');
|
||||||
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath).toString());
|
const packageJson = JSON.parse(fs_1.default.readFileSync(packageJsonPath).toString());
|
||||||
const relevantPackageJsonSections = {
|
const relevantPackageJsonSections = {
|
||||||
dependencies: packageJson.dependencies,
|
dependencies: packageJson.dependencies,
|
||||||
devDependencies: packageJson.devDependencies,
|
devDependencies: packageJson.devDependencies,
|
||||||
@@ -26,8 +29,8 @@ for (const dir of dirs) {
|
|||||||
distro: packageJson.distro
|
distro: packageJson.distro
|
||||||
};
|
};
|
||||||
shasum.update(JSON.stringify(relevantPackageJsonSections));
|
shasum.update(JSON.stringify(relevantPackageJsonSections));
|
||||||
const packageLockPath = path.join(ROOT, dir, 'package-lock.json');
|
const packageLockPath = path_1.default.join(ROOT, dir, 'package-lock.json');
|
||||||
shasum.update(fs.readFileSync(packageLockPath));
|
shasum.update(fs_1.default.readFileSync(packageLockPath));
|
||||||
}
|
}
|
||||||
// Add any other command line arguments
|
// Add any other command line arguments
|
||||||
for (let i = 2; i < process.argv.length; i++) {
|
for (let i = 2; i < process.argv.length; i++) {
|
||||||
|
|||||||
@@ -3,9 +3,9 @@
|
|||||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||||
*--------------------------------------------------------------------------------------------*/
|
*--------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
import * as fs from 'fs';
|
import fs from 'fs';
|
||||||
import * as path from 'path';
|
import path from 'path';
|
||||||
import * as crypto from 'crypto';
|
import crypto from 'crypto';
|
||||||
const { dirs } = require('../../npm/dirs');
|
const { dirs } = require('../../npm/dirs');
|
||||||
|
|
||||||
const ROOT = path.join(__dirname, '../../../');
|
const ROOT = path.join(__dirname, '../../../');
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ async function main() {
|
|||||||
assets: [],
|
assets: [],
|
||||||
updates: {}
|
updates: {}
|
||||||
};
|
};
|
||||||
const aadCredentials = new identity_1.ClientSecretCredential(process.env['AZURE_TENANT_ID'], process.env['AZURE_CLIENT_ID'], process.env['AZURE_CLIENT_SECRET']);
|
const aadCredentials = new identity_1.ClientAssertionCredential(process.env['AZURE_TENANT_ID'], process.env['AZURE_CLIENT_ID'], () => Promise.resolve(process.env['AZURE_ID_TOKEN']));
|
||||||
const client = new cosmos_1.CosmosClient({ endpoint: process.env['AZURE_DOCUMENTDB_ENDPOINT'], aadCredentials });
|
const client = new cosmos_1.CosmosClient({ endpoint: process.env['AZURE_DOCUMENTDB_ENDPOINT'], aadCredentials });
|
||||||
const scripts = client.database('builds').container(quality).scripts;
|
const scripts = client.database('builds').container(quality).scripts;
|
||||||
await (0, retry_1.retry)(() => scripts.storedProcedure('createBuild').execute('', [{ ...build, _partitionKey: '' }]));
|
await (0, retry_1.retry)(() => scripts.storedProcedure('createBuild').execute('', [{ ...build, _partitionKey: '' }]));
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||||
*--------------------------------------------------------------------------------------------*/
|
*--------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
import { ClientSecretCredential } from '@azure/identity';
|
import { ClientAssertionCredential } from '@azure/identity';
|
||||||
import { CosmosClient } from '@azure/cosmos';
|
import { CosmosClient } from '@azure/cosmos';
|
||||||
import { retry } from './retry';
|
import { retry } from './retry';
|
||||||
|
|
||||||
@@ -47,7 +47,7 @@ async function main(): Promise<void> {
|
|||||||
updates: {}
|
updates: {}
|
||||||
};
|
};
|
||||||
|
|
||||||
const aadCredentials = new ClientSecretCredential(process.env['AZURE_TENANT_ID']!, process.env['AZURE_CLIENT_ID']!, process.env['AZURE_CLIENT_SECRET']!);
|
const aadCredentials = new ClientAssertionCredential(process.env['AZURE_TENANT_ID']!, process.env['AZURE_CLIENT_ID']!, () => Promise.resolve(process.env['AZURE_ID_TOKEN']!));
|
||||||
const client = new CosmosClient({ endpoint: process.env['AZURE_DOCUMENTDB_ENDPOINT']!, aadCredentials });
|
const client = new CosmosClient({ endpoint: process.env['AZURE_DOCUMENTDB_ENDPOINT']!, aadCredentials });
|
||||||
const scripts = client.database('builds').container(quality).scripts;
|
const scripts = client.database('builds').container(quality).scripts;
|
||||||
await retry(() => scripts.storedProcedure('createBuild').execute('', [{ ...build, _partitionKey: '' }]));
|
await retry(() => scripts.storedProcedure('createBuild').execute('', [{ ...build, _partitionKey: '' }]));
|
||||||
|
|||||||
Regular → Executable
@@ -0,0 +1,47 @@
|
|||||||
|
"use strict";
|
||||||
|
/*---------------------------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||||
|
*--------------------------------------------------------------------------------------------*/
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
exports.getAccessToken = getAccessToken;
|
||||||
|
const msal_node_1 = require("@azure/msal-node");
|
||||||
|
function e(name) {
|
||||||
|
const result = process.env[name];
|
||||||
|
if (typeof result !== 'string') {
|
||||||
|
throw new Error(`Missing env: ${name}`);
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
async function getAccessToken(endpoint, tenantId, clientId, idToken) {
|
||||||
|
const app = new msal_node_1.ConfidentialClientApplication({
|
||||||
|
auth: {
|
||||||
|
clientId,
|
||||||
|
authority: `https://login.microsoftonline.com/${tenantId}`,
|
||||||
|
clientAssertion: idToken
|
||||||
|
}
|
||||||
|
});
|
||||||
|
const result = await app.acquireTokenByClientCredential({ scopes: [`${endpoint}.default`] });
|
||||||
|
if (!result) {
|
||||||
|
throw new Error('Failed to get access token');
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
token: result.accessToken,
|
||||||
|
expiresOnTimestamp: result.expiresOn.getTime(),
|
||||||
|
refreshAfterTimestamp: result.refreshOn?.getTime()
|
||||||
|
};
|
||||||
|
}
|
||||||
|
async function main() {
|
||||||
|
const cosmosDBAccessToken = await getAccessToken(e('AZURE_DOCUMENTDB_ENDPOINT'), e('AZURE_TENANT_ID'), e('AZURE_CLIENT_ID'), e('AZURE_ID_TOKEN'));
|
||||||
|
const blobServiceAccessToken = await getAccessToken(`https://${e('VSCODE_STAGING_BLOB_STORAGE_ACCOUNT_NAME')}.blob.core.windows.net/`, process.env['AZURE_TENANT_ID'], process.env['AZURE_CLIENT_ID'], process.env['AZURE_ID_TOKEN']);
|
||||||
|
console.log(JSON.stringify({ cosmosDBAccessToken, blobServiceAccessToken }));
|
||||||
|
}
|
||||||
|
if (require.main === module) {
|
||||||
|
main().then(() => {
|
||||||
|
process.exit(0);
|
||||||
|
}, err => {
|
||||||
|
console.error(err);
|
||||||
|
process.exit(1);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=getPublishAuthTokens.js.map
|
||||||
@@ -0,0 +1,54 @@
|
|||||||
|
/*---------------------------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||||
|
*--------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
import { AccessToken } from '@azure/core-auth';
|
||||||
|
import { ConfidentialClientApplication } from '@azure/msal-node';
|
||||||
|
|
||||||
|
function e(name: string): string {
|
||||||
|
const result = process.env[name];
|
||||||
|
|
||||||
|
if (typeof result !== 'string') {
|
||||||
|
throw new Error(`Missing env: ${name}`);
|
||||||
|
}
|
||||||
|
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
export async function getAccessToken(endpoint: string, tenantId: string, clientId: string, idToken: string): Promise<AccessToken> {
|
||||||
|
const app = new ConfidentialClientApplication({
|
||||||
|
auth: {
|
||||||
|
clientId,
|
||||||
|
authority: `https://login.microsoftonline.com/${tenantId}`,
|
||||||
|
clientAssertion: idToken
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
const result = await app.acquireTokenByClientCredential({ scopes: [`${endpoint}.default`] });
|
||||||
|
|
||||||
|
if (!result) {
|
||||||
|
throw new Error('Failed to get access token');
|
||||||
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
|
token: result.accessToken,
|
||||||
|
expiresOnTimestamp: result.expiresOn!.getTime(),
|
||||||
|
refreshAfterTimestamp: result.refreshOn?.getTime()
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
async function main() {
|
||||||
|
const cosmosDBAccessToken = await getAccessToken(e('AZURE_DOCUMENTDB_ENDPOINT')!, e('AZURE_TENANT_ID')!, e('AZURE_CLIENT_ID')!, e('AZURE_ID_TOKEN')!);
|
||||||
|
const blobServiceAccessToken = await getAccessToken(`https://${e('VSCODE_STAGING_BLOB_STORAGE_ACCOUNT_NAME')}.blob.core.windows.net/`, process.env['AZURE_TENANT_ID']!, process.env['AZURE_CLIENT_ID']!, process.env['AZURE_ID_TOKEN']!);
|
||||||
|
console.log(JSON.stringify({ cosmosDBAccessToken, blobServiceAccessToken }));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (require.main === module) {
|
||||||
|
main().then(() => {
|
||||||
|
process.exit(0);
|
||||||
|
}, err => {
|
||||||
|
console.error(err);
|
||||||
|
process.exit(1);
|
||||||
|
});
|
||||||
|
}
|
||||||
@@ -3,16 +3,19 @@
|
|||||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||||
*--------------------------------------------------------------------------------------------*/
|
*--------------------------------------------------------------------------------------------*/
|
||||||
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||||
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||||
|
};
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
const fs = require("fs");
|
const fs_1 = __importDefault(require("fs"));
|
||||||
const path = require("path");
|
const path_1 = __importDefault(require("path"));
|
||||||
if (process.argv.length !== 3) {
|
if (process.argv.length !== 3) {
|
||||||
console.error('Usage: node listNodeModules.js OUTPUT_FILE');
|
console.error('Usage: node listNodeModules.js OUTPUT_FILE');
|
||||||
process.exit(-1);
|
process.exit(-1);
|
||||||
}
|
}
|
||||||
const ROOT = path.join(__dirname, '../../../');
|
const ROOT = path_1.default.join(__dirname, '../../../');
|
||||||
function findNodeModulesFiles(location, inNodeModules, result) {
|
function findNodeModulesFiles(location, inNodeModules, result) {
|
||||||
const entries = fs.readdirSync(path.join(ROOT, location));
|
const entries = fs_1.default.readdirSync(path_1.default.join(ROOT, location));
|
||||||
for (const entry of entries) {
|
for (const entry of entries) {
|
||||||
const entryPath = `${location}/${entry}`;
|
const entryPath = `${location}/${entry}`;
|
||||||
if (/(^\/out)|(^\/src$)|(^\/.git$)|(^\/.build$)/.test(entryPath)) {
|
if (/(^\/out)|(^\/src$)|(^\/.git$)|(^\/.build$)/.test(entryPath)) {
|
||||||
@@ -20,7 +23,7 @@ function findNodeModulesFiles(location, inNodeModules, result) {
|
|||||||
}
|
}
|
||||||
let stat;
|
let stat;
|
||||||
try {
|
try {
|
||||||
stat = fs.statSync(path.join(ROOT, entryPath));
|
stat = fs_1.default.statSync(path_1.default.join(ROOT, entryPath));
|
||||||
}
|
}
|
||||||
catch (err) {
|
catch (err) {
|
||||||
continue;
|
continue;
|
||||||
@@ -37,5 +40,5 @@ function findNodeModulesFiles(location, inNodeModules, result) {
|
|||||||
}
|
}
|
||||||
const result = [];
|
const result = [];
|
||||||
findNodeModulesFiles('', false, result);
|
findNodeModulesFiles('', false, result);
|
||||||
fs.writeFileSync(process.argv[2], result.join('\n') + '\n');
|
fs_1.default.writeFileSync(process.argv[2], result.join('\n') + '\n');
|
||||||
//# sourceMappingURL=listNodeModules.js.map
|
//# sourceMappingURL=listNodeModules.js.map
|
||||||
@@ -3,8 +3,8 @@
|
|||||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||||
*--------------------------------------------------------------------------------------------*/
|
*--------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
import * as fs from 'fs';
|
import fs from 'fs';
|
||||||
import * as path from 'path';
|
import path from 'path';
|
||||||
|
|
||||||
if (process.argv.length !== 3) {
|
if (process.argv.length !== 3) {
|
||||||
console.error('Usage: node listNodeModules.js OUTPUT_FILE');
|
console.error('Usage: node listNodeModules.js OUTPUT_FILE');
|
||||||
|
|||||||
@@ -3,19 +3,25 @@
|
|||||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||||
*--------------------------------------------------------------------------------------------*/
|
*--------------------------------------------------------------------------------------------*/
|
||||||
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||||
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||||
|
};
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
const fs = require("fs");
|
const fs_1 = __importDefault(require("fs"));
|
||||||
const path = require("path");
|
const path_1 = __importDefault(require("path"));
|
||||||
const stream_1 = require("stream");
|
const stream_1 = require("stream");
|
||||||
const promises_1 = require("node:stream/promises");
|
const promises_1 = require("node:stream/promises");
|
||||||
const yauzl = require("yauzl");
|
const yauzl_1 = __importDefault(require("yauzl"));
|
||||||
const crypto = require("crypto");
|
const crypto_1 = __importDefault(require("crypto"));
|
||||||
const retry_1 = require("./retry");
|
const retry_1 = require("./retry");
|
||||||
const cosmos_1 = require("@azure/cosmos");
|
const cosmos_1 = require("@azure/cosmos");
|
||||||
const identity_1 = require("@azure/identity");
|
const child_process_1 = __importDefault(require("child_process"));
|
||||||
const cp = require("child_process");
|
const os_1 = __importDefault(require("os"));
|
||||||
const os = require("os");
|
|
||||||
const node_worker_threads_1 = require("node:worker_threads");
|
const node_worker_threads_1 = require("node:worker_threads");
|
||||||
|
const msal_node_1 = require("@azure/msal-node");
|
||||||
|
const storage_blob_1 = require("@azure/storage-blob");
|
||||||
|
const jws_1 = __importDefault(require("jws"));
|
||||||
|
const node_timers_1 = require("node:timers");
|
||||||
function e(name) {
|
function e(name) {
|
||||||
const result = process.env[name];
|
const result = process.env[name];
|
||||||
if (typeof result !== 'string') {
|
if (typeof result !== 'string') {
|
||||||
@@ -23,260 +29,264 @@ function e(name) {
|
|||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
class Temp {
|
|
||||||
_files = [];
|
|
||||||
tmpNameSync() {
|
|
||||||
const file = path.join(os.tmpdir(), crypto.randomBytes(20).toString('hex'));
|
|
||||||
this._files.push(file);
|
|
||||||
return file;
|
|
||||||
}
|
|
||||||
dispose() {
|
|
||||||
for (const file of this._files) {
|
|
||||||
try {
|
|
||||||
fs.unlinkSync(file);
|
|
||||||
}
|
|
||||||
catch (err) {
|
|
||||||
// noop
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function isCreateProvisionedFilesErrorResponse(response) {
|
|
||||||
return response?.ErrorDetails?.Code !== undefined;
|
|
||||||
}
|
|
||||||
class ProvisionService {
|
|
||||||
log;
|
|
||||||
accessToken;
|
|
||||||
constructor(log, accessToken) {
|
|
||||||
this.log = log;
|
|
||||||
this.accessToken = accessToken;
|
|
||||||
}
|
|
||||||
async provision(releaseId, fileId, fileName) {
|
|
||||||
const body = JSON.stringify({
|
|
||||||
ReleaseId: releaseId,
|
|
||||||
PortalName: 'VSCode',
|
|
||||||
PublisherCode: 'VSCode',
|
|
||||||
ProvisionedFilesCollection: [{
|
|
||||||
PublisherKey: fileId,
|
|
||||||
IsStaticFriendlyFileName: true,
|
|
||||||
FriendlyFileName: fileName,
|
|
||||||
MaxTTL: '1440',
|
|
||||||
CdnMappings: ['ECN']
|
|
||||||
}]
|
|
||||||
});
|
|
||||||
this.log(`Provisioning ${fileName} (releaseId: ${releaseId}, fileId: ${fileId})...`);
|
|
||||||
const res = await (0, retry_1.retry)(() => this.request('POST', '/api/v2/ProvisionedFiles/CreateProvisionedFiles', { body }));
|
|
||||||
if (isCreateProvisionedFilesErrorResponse(res) && res.ErrorDetails.Code === 'FriendlyFileNameAlreadyProvisioned') {
|
|
||||||
this.log(`File already provisioned (most likley due to a re-run), skipping: ${fileName}`);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (!res.IsSuccess) {
|
|
||||||
throw new Error(`Failed to submit provisioning request: ${JSON.stringify(res.ErrorDetails)}`);
|
|
||||||
}
|
|
||||||
this.log(`Successfully provisioned ${fileName}`);
|
|
||||||
}
|
|
||||||
async request(method, url, options) {
|
|
||||||
const opts = {
|
|
||||||
method,
|
|
||||||
body: options?.body,
|
|
||||||
headers: {
|
|
||||||
Authorization: `Bearer ${this.accessToken}`,
|
|
||||||
'Content-Type': 'application/json'
|
|
||||||
}
|
|
||||||
};
|
|
||||||
const res = await fetch(`https://dsprovisionapi.microsoft.com${url}`, opts);
|
|
||||||
// 400 normally means the request is bad or something is already provisioned, so we will return as retries are useless
|
|
||||||
// Otherwise log the text body and headers. We do text because some responses are not JSON.
|
|
||||||
if ((!res.ok || res.status < 200 || res.status >= 500) && res.status !== 400) {
|
|
||||||
throw new Error(`Unexpected status code: ${res.status}\nResponse Headers: ${JSON.stringify(res.headers)}\nBody Text: ${await res.text()}`);
|
|
||||||
}
|
|
||||||
return await res.json();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function hashStream(hashName, stream) {
|
function hashStream(hashName, stream) {
|
||||||
return new Promise((c, e) => {
|
return new Promise((c, e) => {
|
||||||
const shasum = crypto.createHash(hashName);
|
const shasum = crypto_1.default.createHash(hashName);
|
||||||
stream
|
stream
|
||||||
.on('data', shasum.update.bind(shasum))
|
.on('data', shasum.update.bind(shasum))
|
||||||
.on('error', e)
|
.on('error', e)
|
||||||
.on('close', () => c(shasum.digest('hex')));
|
.on('close', () => c(shasum.digest()));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
class ESRPClient {
|
var StatusCode;
|
||||||
log;
|
(function (StatusCode) {
|
||||||
tmp;
|
StatusCode["Pass"] = "pass";
|
||||||
authPath;
|
StatusCode["Aborted"] = "aborted";
|
||||||
constructor(log, tmp, tenantId, clientId, authCertSubjectName, requestSigningCertSubjectName) {
|
StatusCode["Inprogress"] = "inprogress";
|
||||||
this.log = log;
|
StatusCode["FailCanRetry"] = "failCanRetry";
|
||||||
this.tmp = tmp;
|
StatusCode["FailDoNotRetry"] = "failDoNotRetry";
|
||||||
this.authPath = this.tmp.tmpNameSync();
|
StatusCode["PendingAnalysis"] = "pendingAnalysis";
|
||||||
fs.writeFileSync(this.authPath, JSON.stringify({
|
StatusCode["Cancelled"] = "cancelled";
|
||||||
Version: '1.0.0',
|
})(StatusCode || (StatusCode = {}));
|
||||||
AuthenticationType: 'AAD_CERT',
|
function getCertificateBuffer(input) {
|
||||||
TenantId: tenantId,
|
return Buffer.from(input.replace(/-----BEGIN CERTIFICATE-----|-----END CERTIFICATE-----|\n/g, ''), 'base64');
|
||||||
ClientId: clientId,
|
|
||||||
AuthCert: {
|
|
||||||
SubjectName: authCertSubjectName,
|
|
||||||
StoreLocation: 'LocalMachine',
|
|
||||||
StoreName: 'My',
|
|
||||||
SendX5c: 'true'
|
|
||||||
},
|
|
||||||
RequestSigningCert: {
|
|
||||||
SubjectName: requestSigningCertSubjectName,
|
|
||||||
StoreLocation: 'LocalMachine',
|
|
||||||
StoreName: 'My'
|
|
||||||
}
|
|
||||||
}));
|
|
||||||
}
|
|
||||||
async release(version, filePath) {
|
|
||||||
this.log(`Submitting release for ${version}: ${filePath}`);
|
|
||||||
const submitReleaseResult = await this.SubmitRelease(version, filePath);
|
|
||||||
if (submitReleaseResult.submissionResponse.statusCode !== 'pass') {
|
|
||||||
throw new Error(`Unexpected status code: ${submitReleaseResult.submissionResponse.statusCode}`);
|
|
||||||
}
|
|
||||||
const releaseId = submitReleaseResult.submissionResponse.operationId;
|
|
||||||
this.log(`Successfully submitted release ${releaseId}. Polling for completion...`);
|
|
||||||
let details;
|
|
||||||
// Poll every 5 seconds, wait 60 minutes max -> poll 60/5*60=720 times
|
|
||||||
for (let i = 0; i < 720; i++) {
|
|
||||||
details = await this.ReleaseDetails(releaseId);
|
|
||||||
if (details.releaseDetails[0].statusCode === 'pass') {
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
else if (details.releaseDetails[0].statusCode !== 'inprogress') {
|
|
||||||
throw new Error(`Failed to submit release: ${JSON.stringify(details)}`);
|
|
||||||
}
|
|
||||||
await new Promise(c => setTimeout(c, 5000));
|
|
||||||
}
|
|
||||||
if (details.releaseDetails[0].statusCode !== 'pass') {
|
|
||||||
throw new Error(`Timed out waiting for release ${releaseId}: ${JSON.stringify(details)}`);
|
|
||||||
}
|
|
||||||
const fileId = details.releaseDetails[0].fileDetails[0].publisherKey;
|
|
||||||
this.log('Release completed successfully with fileId: ', fileId);
|
|
||||||
return { releaseId, fileId };
|
|
||||||
}
|
|
||||||
async SubmitRelease(version, filePath) {
|
|
||||||
const policyPath = this.tmp.tmpNameSync();
|
|
||||||
fs.writeFileSync(policyPath, JSON.stringify({
|
|
||||||
Version: '1.0.0',
|
|
||||||
Audience: 'InternalLimited',
|
|
||||||
Intent: 'distribution',
|
|
||||||
ContentType: 'InstallPackage'
|
|
||||||
}));
|
|
||||||
const inputPath = this.tmp.tmpNameSync();
|
|
||||||
const size = fs.statSync(filePath).size;
|
|
||||||
const istream = fs.createReadStream(filePath);
|
|
||||||
const sha256 = await hashStream('sha256', istream);
|
|
||||||
fs.writeFileSync(inputPath, JSON.stringify({
|
|
||||||
Version: '1.0.0',
|
|
||||||
ReleaseInfo: {
|
|
||||||
ReleaseMetadata: {
|
|
||||||
Title: 'VS Code',
|
|
||||||
Properties: {
|
|
||||||
ReleaseContentType: 'InstallPackage'
|
|
||||||
},
|
|
||||||
MinimumNumberOfApprovers: 1
|
|
||||||
},
|
|
||||||
ProductInfo: {
|
|
||||||
Name: 'VS Code',
|
|
||||||
Version: version,
|
|
||||||
Description: path.basename(filePath, path.extname(filePath)),
|
|
||||||
},
|
|
||||||
Owners: [
|
|
||||||
{
|
|
||||||
Owner: {
|
|
||||||
UserPrincipalName: 'jomo@microsoft.com'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
Approvers: [
|
|
||||||
{
|
|
||||||
Approver: {
|
|
||||||
UserPrincipalName: 'jomo@microsoft.com'
|
|
||||||
},
|
|
||||||
IsAutoApproved: true,
|
|
||||||
IsMandatory: false
|
|
||||||
}
|
|
||||||
],
|
|
||||||
AccessPermissions: {
|
|
||||||
MainPublisher: 'VSCode',
|
|
||||||
ChannelDownloadEntityDetails: {
|
|
||||||
Consumer: ['VSCode']
|
|
||||||
}
|
|
||||||
},
|
|
||||||
CreatedBy: {
|
|
||||||
UserPrincipalName: 'jomo@microsoft.com'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
ReleaseBatches: [
|
|
||||||
{
|
|
||||||
ReleaseRequestFiles: [
|
|
||||||
{
|
|
||||||
SizeInBytes: size,
|
|
||||||
SourceHash: sha256,
|
|
||||||
HashType: 'SHA256',
|
|
||||||
SourceLocation: path.basename(filePath)
|
|
||||||
}
|
|
||||||
],
|
|
||||||
SourceLocationType: 'UNC',
|
|
||||||
SourceRootDirectory: path.dirname(filePath),
|
|
||||||
DestinationLocationType: 'AzureBlob'
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}));
|
|
||||||
const outputPath = this.tmp.tmpNameSync();
|
|
||||||
cp.execSync(`ESRPClient SubmitRelease -a ${this.authPath} -p ${policyPath} -i ${inputPath} -o ${outputPath}`, { stdio: 'inherit' });
|
|
||||||
const output = fs.readFileSync(outputPath, 'utf8');
|
|
||||||
return JSON.parse(output);
|
|
||||||
}
|
|
||||||
async ReleaseDetails(releaseId) {
|
|
||||||
const inputPath = this.tmp.tmpNameSync();
|
|
||||||
fs.writeFileSync(inputPath, JSON.stringify({
|
|
||||||
Version: '1.0.0',
|
|
||||||
OperationIds: [releaseId]
|
|
||||||
}));
|
|
||||||
const outputPath = this.tmp.tmpNameSync();
|
|
||||||
cp.execSync(`ESRPClient ReleaseDetails -a ${this.authPath} -i ${inputPath} -o ${outputPath}`, { stdio: 'inherit' });
|
|
||||||
const output = fs.readFileSync(outputPath, 'utf8');
|
|
||||||
return JSON.parse(output);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
async function releaseAndProvision(log, releaseTenantId, releaseClientId, releaseAuthCertSubjectName, releaseRequestSigningCertSubjectName, provisionTenantId, provisionAADUsername, provisionAADPassword, version, quality, filePath) {
|
function getThumbprint(input, algorithm) {
|
||||||
const fileName = `${quality}/${version}/${path.basename(filePath)}`;
|
const buffer = getCertificateBuffer(input);
|
||||||
const result = `${e('PRSS_CDN_URL')}/${fileName}`;
|
return crypto_1.default.createHash(algorithm).update(buffer).digest();
|
||||||
const res = await (0, retry_1.retry)(() => fetch(result));
|
}
|
||||||
if (res.status === 200) {
|
function getKeyFromPFX(pfx) {
|
||||||
log(`Already released and provisioned: ${result}`);
|
const pfxCertificatePath = path_1.default.join(os_1.default.tmpdir(), 'cert.pfx');
|
||||||
|
const pemKeyPath = path_1.default.join(os_1.default.tmpdir(), 'key.pem');
|
||||||
|
try {
|
||||||
|
const pfxCertificate = Buffer.from(pfx, 'base64');
|
||||||
|
fs_1.default.writeFileSync(pfxCertificatePath, pfxCertificate);
|
||||||
|
child_process_1.default.execSync(`openssl pkcs12 -in "${pfxCertificatePath}" -nocerts -nodes -out "${pemKeyPath}" -passin pass:`);
|
||||||
|
const raw = fs_1.default.readFileSync(pemKeyPath, 'utf-8');
|
||||||
|
const result = raw.match(/-----BEGIN PRIVATE KEY-----[\s\S]+?-----END PRIVATE KEY-----/g)[0];
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
const tmp = new Temp();
|
finally {
|
||||||
process.on('exit', () => tmp.dispose());
|
fs_1.default.rmSync(pfxCertificatePath, { force: true });
|
||||||
const esrpclient = new ESRPClient(log, tmp, releaseTenantId, releaseClientId, releaseAuthCertSubjectName, releaseRequestSigningCertSubjectName);
|
fs_1.default.rmSync(pemKeyPath, { force: true });
|
||||||
const release = await esrpclient.release(version, filePath);
|
}
|
||||||
const credential = new identity_1.ClientSecretCredential(provisionTenantId, provisionAADUsername, provisionAADPassword);
|
}
|
||||||
const accessToken = await credential.getToken(['https://microsoft.onmicrosoft.com/DS.Provisioning.WebApi/.default']);
|
function getCertificatesFromPFX(pfx) {
|
||||||
const service = new ProvisionService(log, accessToken.token);
|
const pfxCertificatePath = path_1.default.join(os_1.default.tmpdir(), 'cert.pfx');
|
||||||
await service.provision(release.releaseId, release.fileId, fileName);
|
const pemCertificatePath = path_1.default.join(os_1.default.tmpdir(), 'cert.pem');
|
||||||
return result;
|
try {
|
||||||
|
const pfxCertificate = Buffer.from(pfx, 'base64');
|
||||||
|
fs_1.default.writeFileSync(pfxCertificatePath, pfxCertificate);
|
||||||
|
child_process_1.default.execSync(`openssl pkcs12 -in "${pfxCertificatePath}" -nokeys -out "${pemCertificatePath}" -passin pass:`);
|
||||||
|
const raw = fs_1.default.readFileSync(pemCertificatePath, 'utf-8');
|
||||||
|
const matches = raw.match(/-----BEGIN CERTIFICATE-----[\s\S]+?-----END CERTIFICATE-----/g);
|
||||||
|
return matches ? matches.reverse() : [];
|
||||||
|
}
|
||||||
|
finally {
|
||||||
|
fs_1.default.rmSync(pfxCertificatePath, { force: true });
|
||||||
|
fs_1.default.rmSync(pemCertificatePath, { force: true });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
class ESRPReleaseService {
|
||||||
|
log;
|
||||||
|
clientId;
|
||||||
|
accessToken;
|
||||||
|
requestSigningCertificates;
|
||||||
|
requestSigningKey;
|
||||||
|
containerClient;
|
||||||
|
stagingSasToken;
|
||||||
|
static async create(log, tenantId, clientId, authCertificatePfx, requestSigningCertificatePfx, containerClient, stagingSasToken) {
|
||||||
|
const authKey = getKeyFromPFX(authCertificatePfx);
|
||||||
|
const authCertificate = getCertificatesFromPFX(authCertificatePfx)[0];
|
||||||
|
const requestSigningKey = getKeyFromPFX(requestSigningCertificatePfx);
|
||||||
|
const requestSigningCertificates = getCertificatesFromPFX(requestSigningCertificatePfx);
|
||||||
|
const app = new msal_node_1.ConfidentialClientApplication({
|
||||||
|
auth: {
|
||||||
|
clientId,
|
||||||
|
authority: `https://login.microsoftonline.com/${tenantId}`,
|
||||||
|
clientCertificate: {
|
||||||
|
thumbprintSha256: getThumbprint(authCertificate, 'sha256').toString('hex'),
|
||||||
|
privateKey: authKey,
|
||||||
|
x5c: authCertificate
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
const response = await app.acquireTokenByClientCredential({
|
||||||
|
scopes: ['https://api.esrp.microsoft.com/.default']
|
||||||
|
});
|
||||||
|
return new ESRPReleaseService(log, clientId, response.accessToken, requestSigningCertificates, requestSigningKey, containerClient, stagingSasToken);
|
||||||
|
}
|
||||||
|
static API_URL = 'https://api.esrp.microsoft.com/api/v3/releaseservices/clients/';
|
||||||
|
constructor(log, clientId, accessToken, requestSigningCertificates, requestSigningKey, containerClient, stagingSasToken) {
|
||||||
|
this.log = log;
|
||||||
|
this.clientId = clientId;
|
||||||
|
this.accessToken = accessToken;
|
||||||
|
this.requestSigningCertificates = requestSigningCertificates;
|
||||||
|
this.requestSigningKey = requestSigningKey;
|
||||||
|
this.containerClient = containerClient;
|
||||||
|
this.stagingSasToken = stagingSasToken;
|
||||||
|
}
|
||||||
|
async createRelease(version, filePath, friendlyFileName) {
|
||||||
|
const correlationId = crypto_1.default.randomUUID();
|
||||||
|
const blobClient = this.containerClient.getBlockBlobClient(correlationId);
|
||||||
|
this.log(`Uploading ${filePath} to ${blobClient.url}`);
|
||||||
|
await blobClient.uploadFile(filePath);
|
||||||
|
this.log('Uploaded blob successfully');
|
||||||
|
try {
|
||||||
|
this.log(`Submitting release for ${version}: ${filePath}`);
|
||||||
|
const submitReleaseResult = await this.submitRelease(version, filePath, friendlyFileName, correlationId, blobClient);
|
||||||
|
this.log(`Successfully submitted release ${submitReleaseResult.operationId}. Polling for completion...`);
|
||||||
|
// Poll every 5 seconds, wait 60 minutes max -> poll 60/5*60=720 times
|
||||||
|
for (let i = 0; i < 720; i++) {
|
||||||
|
await new Promise(c => setTimeout(c, 5000));
|
||||||
|
const releaseStatus = await this.getReleaseStatus(submitReleaseResult.operationId);
|
||||||
|
if (releaseStatus.status === 'pass') {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
else if (releaseStatus.status === 'aborted') {
|
||||||
|
this.log(JSON.stringify(releaseStatus));
|
||||||
|
throw new Error(`Release was aborted`);
|
||||||
|
}
|
||||||
|
else if (releaseStatus.status !== 'inprogress') {
|
||||||
|
this.log(JSON.stringify(releaseStatus));
|
||||||
|
throw new Error(`Unknown error when polling for release`);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const releaseDetails = await this.getReleaseDetails(submitReleaseResult.operationId);
|
||||||
|
if (releaseDetails.status !== 'pass') {
|
||||||
|
throw new Error(`Timed out waiting for release: ${JSON.stringify(releaseDetails)}`);
|
||||||
|
}
|
||||||
|
this.log('Successfully created release:', releaseDetails.files[0].fileDownloadDetails[0].downloadUrl);
|
||||||
|
return releaseDetails.files[0].fileDownloadDetails[0].downloadUrl;
|
||||||
|
}
|
||||||
|
finally {
|
||||||
|
this.log(`Deleting blob ${blobClient.url}`);
|
||||||
|
await blobClient.delete();
|
||||||
|
this.log('Deleted blob successfully');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
async submitRelease(version, filePath, friendlyFileName, correlationId, blobClient) {
|
||||||
|
const size = fs_1.default.statSync(filePath).size;
|
||||||
|
const hash = await hashStream('sha256', fs_1.default.createReadStream(filePath));
|
||||||
|
const blobUrl = `${blobClient.url}?${this.stagingSasToken}`;
|
||||||
|
const message = {
|
||||||
|
customerCorrelationId: correlationId,
|
||||||
|
esrpCorrelationId: correlationId,
|
||||||
|
driEmail: ['joao.moreno@microsoft.com'],
|
||||||
|
createdBy: { userPrincipalName: 'jomo@microsoft.com' },
|
||||||
|
owners: [{ owner: { userPrincipalName: 'jomo@microsoft.com' } }],
|
||||||
|
approvers: [{ approver: { userPrincipalName: 'jomo@microsoft.com' }, isAutoApproved: true, isMandatory: false }],
|
||||||
|
releaseInfo: {
|
||||||
|
title: 'VS Code',
|
||||||
|
properties: {
|
||||||
|
'ReleaseContentType': 'InstallPackage'
|
||||||
|
},
|
||||||
|
minimumNumberOfApprovers: 1
|
||||||
|
},
|
||||||
|
productInfo: {
|
||||||
|
name: 'VS Code',
|
||||||
|
version,
|
||||||
|
description: 'VS Code'
|
||||||
|
},
|
||||||
|
accessPermissionsInfo: {
|
||||||
|
mainPublisher: 'VSCode',
|
||||||
|
channelDownloadEntityDetails: {
|
||||||
|
AllDownloadEntities: ['VSCode']
|
||||||
|
}
|
||||||
|
},
|
||||||
|
routingInfo: {
|
||||||
|
intent: 'filedownloadlinkgeneration'
|
||||||
|
},
|
||||||
|
files: [{
|
||||||
|
name: path_1.default.basename(filePath),
|
||||||
|
friendlyFileName,
|
||||||
|
tenantFileLocation: blobUrl,
|
||||||
|
tenantFileLocationType: 'AzureBlob',
|
||||||
|
sourceLocation: {
|
||||||
|
type: 'azureBlob',
|
||||||
|
blobUrl
|
||||||
|
},
|
||||||
|
hashType: 'sha256',
|
||||||
|
hash: Array.from(hash),
|
||||||
|
sizeInBytes: size
|
||||||
|
}]
|
||||||
|
};
|
||||||
|
message.jwsToken = await this.generateJwsToken(message);
|
||||||
|
const res = await fetch(`${ESRPReleaseService.API_URL}${this.clientId}/workflows/release/operations`, {
|
||||||
|
method: 'POST',
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'application/json',
|
||||||
|
'Authorization': `Bearer ${this.accessToken}`
|
||||||
|
},
|
||||||
|
body: JSON.stringify(message)
|
||||||
|
});
|
||||||
|
if (!res.ok) {
|
||||||
|
const text = await res.text();
|
||||||
|
throw new Error(`Failed to submit release: ${res.statusText}\n${text}`);
|
||||||
|
}
|
||||||
|
return await res.json();
|
||||||
|
}
|
||||||
|
async getReleaseStatus(releaseId) {
|
||||||
|
const url = `${ESRPReleaseService.API_URL}${this.clientId}/workflows/release/operations/grs/${releaseId}`;
|
||||||
|
const res = await fetch(url, {
|
||||||
|
headers: {
|
||||||
|
'Authorization': `Bearer ${this.accessToken}`
|
||||||
|
}
|
||||||
|
});
|
||||||
|
if (!res.ok) {
|
||||||
|
const text = await res.text();
|
||||||
|
throw new Error(`Failed to get release status: ${res.statusText}\n${text}`);
|
||||||
|
}
|
||||||
|
return await res.json();
|
||||||
|
}
|
||||||
|
async getReleaseDetails(releaseId) {
|
||||||
|
const url = `${ESRPReleaseService.API_URL}${this.clientId}/workflows/release/operations/grd/${releaseId}`;
|
||||||
|
const res = await fetch(url, {
|
||||||
|
headers: {
|
||||||
|
'Authorization': `Bearer ${this.accessToken}`
|
||||||
|
}
|
||||||
|
});
|
||||||
|
if (!res.ok) {
|
||||||
|
const text = await res.text();
|
||||||
|
throw new Error(`Failed to get release status: ${res.statusText}\n${text}`);
|
||||||
|
}
|
||||||
|
return await res.json();
|
||||||
|
}
|
||||||
|
async generateJwsToken(message) {
|
||||||
|
return jws_1.default.sign({
|
||||||
|
header: {
|
||||||
|
alg: 'RS256',
|
||||||
|
crit: ['exp', 'x5t'],
|
||||||
|
// Release service uses ticks, not seconds :roll_eyes: (https://stackoverflow.com/a/7968483)
|
||||||
|
exp: ((Date.now() + (6 * 60 * 1000)) * 10000) + 621355968000000000,
|
||||||
|
// Release service uses hex format, not base64url :roll_eyes:
|
||||||
|
x5t: getThumbprint(this.requestSigningCertificates[0], 'sha1').toString('hex'),
|
||||||
|
// Release service uses a '.' separated string, not an array of strings :roll_eyes:
|
||||||
|
x5c: this.requestSigningCertificates.map(c => getCertificateBuffer(c).toString('base64url')).join('.'),
|
||||||
|
},
|
||||||
|
payload: message,
|
||||||
|
privateKey: this.requestSigningKey,
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
class State {
|
class State {
|
||||||
statePath;
|
statePath;
|
||||||
set = new Set();
|
set = new Set();
|
||||||
constructor() {
|
constructor() {
|
||||||
const pipelineWorkspacePath = e('PIPELINE_WORKSPACE');
|
const pipelineWorkspacePath = e('PIPELINE_WORKSPACE');
|
||||||
const previousState = fs.readdirSync(pipelineWorkspacePath)
|
const previousState = fs_1.default.readdirSync(pipelineWorkspacePath)
|
||||||
.map(name => /^artifacts_processed_(\d+)$/.exec(name))
|
.map(name => /^artifacts_processed_(\d+)$/.exec(name))
|
||||||
.filter((match) => !!match)
|
.filter((match) => !!match)
|
||||||
.map(match => ({ name: match[0], attempt: Number(match[1]) }))
|
.map(match => ({ name: match[0], attempt: Number(match[1]) }))
|
||||||
.sort((a, b) => b.attempt - a.attempt)[0];
|
.sort((a, b) => b.attempt - a.attempt)[0];
|
||||||
if (previousState) {
|
if (previousState) {
|
||||||
const previousStatePath = path.join(pipelineWorkspacePath, previousState.name, previousState.name + '.txt');
|
const previousStatePath = path_1.default.join(pipelineWorkspacePath, previousState.name, previousState.name + '.txt');
|
||||||
fs.readFileSync(previousStatePath, 'utf8').split(/\n/).filter(name => !!name).forEach(name => this.set.add(name));
|
fs_1.default.readFileSync(previousStatePath, 'utf8').split(/\n/).filter(name => !!name).forEach(name => this.set.add(name));
|
||||||
}
|
}
|
||||||
const stageAttempt = e('SYSTEM_STAGEATTEMPT');
|
const stageAttempt = e('SYSTEM_STAGEATTEMPT');
|
||||||
this.statePath = path.join(pipelineWorkspacePath, `artifacts_processed_${stageAttempt}`, `artifacts_processed_${stageAttempt}.txt`);
|
this.statePath = path_1.default.join(pipelineWorkspacePath, `artifacts_processed_${stageAttempt}`, `artifacts_processed_${stageAttempt}.txt`);
|
||||||
fs.mkdirSync(path.dirname(this.statePath), { recursive: true });
|
fs_1.default.mkdirSync(path_1.default.dirname(this.statePath), { recursive: true });
|
||||||
fs.writeFileSync(this.statePath, [...this.set.values()].map(name => `${name}\n`).join(''));
|
fs_1.default.writeFileSync(this.statePath, [...this.set.values()].map(name => `${name}\n`).join(''));
|
||||||
}
|
}
|
||||||
get size() {
|
get size() {
|
||||||
return this.set.size;
|
return this.set.size;
|
||||||
@@ -286,7 +296,7 @@ class State {
|
|||||||
}
|
}
|
||||||
add(name) {
|
add(name) {
|
||||||
this.set.add(name);
|
this.set.add(name);
|
||||||
fs.appendFileSync(this.statePath, `${name}\n`);
|
fs_1.default.appendFileSync(this.statePath, `${name}\n`);
|
||||||
}
|
}
|
||||||
[Symbol.iterator]() {
|
[Symbol.iterator]() {
|
||||||
return this.set[Symbol.iterator]();
|
return this.set[Symbol.iterator]();
|
||||||
@@ -332,7 +342,7 @@ async function downloadArtifact(artifact, downloadPath) {
|
|||||||
if (!res.ok) {
|
if (!res.ok) {
|
||||||
throw new Error(`Unexpected status code: ${res.status}`);
|
throw new Error(`Unexpected status code: ${res.status}`);
|
||||||
}
|
}
|
||||||
await (0, promises_1.pipeline)(stream_1.Readable.fromWeb(res.body), fs.createWriteStream(downloadPath));
|
await (0, promises_1.pipeline)(stream_1.Readable.fromWeb(res.body), fs_1.default.createWriteStream(downloadPath));
|
||||||
}
|
}
|
||||||
finally {
|
finally {
|
||||||
clearTimeout(timeout);
|
clearTimeout(timeout);
|
||||||
@@ -340,7 +350,7 @@ async function downloadArtifact(artifact, downloadPath) {
|
|||||||
}
|
}
|
||||||
async function unzip(packagePath, outputPath) {
|
async function unzip(packagePath, outputPath) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
yauzl.open(packagePath, { lazyEntries: true, autoClose: true }, (err, zipfile) => {
|
yauzl_1.default.open(packagePath, { lazyEntries: true, autoClose: true }, (err, zipfile) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
return reject(err);
|
return reject(err);
|
||||||
}
|
}
|
||||||
@@ -354,9 +364,9 @@ async function unzip(packagePath, outputPath) {
|
|||||||
if (err) {
|
if (err) {
|
||||||
return reject(err);
|
return reject(err);
|
||||||
}
|
}
|
||||||
const filePath = path.join(outputPath, entry.fileName);
|
const filePath = path_1.default.join(outputPath, entry.fileName);
|
||||||
fs.mkdirSync(path.dirname(filePath), { recursive: true });
|
fs_1.default.mkdirSync(path_1.default.dirname(filePath), { recursive: true });
|
||||||
const ostream = fs.createWriteStream(filePath);
|
const ostream = fs_1.default.createWriteStream(filePath);
|
||||||
ostream.on('finish', () => {
|
ostream.on('finish', () => {
|
||||||
result.push(filePath);
|
result.push(filePath);
|
||||||
zipfile.readEntry();
|
zipfile.readEntry();
|
||||||
@@ -372,7 +382,7 @@ async function unzip(packagePath, outputPath) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
// Contains all of the logic for mapping details to our actual product names in CosmosDB
|
// Contains all of the logic for mapping details to our actual product names in CosmosDB
|
||||||
function getPlatform(product, os, arch, type, isLegacy) {
|
function getPlatform(product, os, arch, type) {
|
||||||
switch (os) {
|
switch (os) {
|
||||||
case 'win32':
|
case 'win32':
|
||||||
switch (product) {
|
switch (product) {
|
||||||
@@ -417,12 +427,12 @@ function getPlatform(product, os, arch, type, isLegacy) {
|
|||||||
case 'client':
|
case 'client':
|
||||||
return `linux-${arch}`;
|
return `linux-${arch}`;
|
||||||
case 'server':
|
case 'server':
|
||||||
return isLegacy ? `server-linux-legacy-${arch}` : `server-linux-${arch}`;
|
return `server-linux-${arch}`;
|
||||||
case 'web':
|
case 'web':
|
||||||
if (arch === 'standalone') {
|
if (arch === 'standalone') {
|
||||||
return 'web-standalone';
|
return 'web-standalone';
|
||||||
}
|
}
|
||||||
return isLegacy ? `server-linux-legacy-${arch}-web` : `server-linux-${arch}-web`;
|
return `server-linux-${arch}-web`;
|
||||||
default:
|
default:
|
||||||
throw new Error(`Unrecognized: ${product} ${os} ${arch} ${type}`);
|
throw new Error(`Unrecognized: ${product} ${os} ${arch} ${type}`);
|
||||||
}
|
}
|
||||||
@@ -473,33 +483,101 @@ function getRealType(type) {
|
|||||||
return type;
|
return type;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
async function processArtifact(artifact, artifactFilePath) {
|
async function withLease(client, fn) {
|
||||||
|
const lease = client.getBlobLeaseClient();
|
||||||
|
for (let i = 0; i < 360; i++) { // Try to get lease for 30 minutes
|
||||||
|
try {
|
||||||
|
await client.uploadData(new ArrayBuffer()); // blob needs to exist for lease to be acquired
|
||||||
|
await lease.acquireLease(60);
|
||||||
|
try {
|
||||||
|
const abortController = new AbortController();
|
||||||
|
const refresher = new Promise((c, e) => {
|
||||||
|
abortController.signal.onabort = () => {
|
||||||
|
(0, node_timers_1.clearInterval)(interval);
|
||||||
|
c();
|
||||||
|
};
|
||||||
|
const interval = (0, node_timers_1.setInterval)(() => {
|
||||||
|
lease.renewLease().catch(err => {
|
||||||
|
(0, node_timers_1.clearInterval)(interval);
|
||||||
|
e(new Error('Failed to renew lease ' + err));
|
||||||
|
});
|
||||||
|
}, 30_000);
|
||||||
|
});
|
||||||
|
const result = await Promise.race([fn(), refresher]);
|
||||||
|
abortController.abort();
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
finally {
|
||||||
|
await lease.releaseLease();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (err) {
|
||||||
|
if (err.statusCode !== 409 && err.statusCode !== 412) {
|
||||||
|
throw err;
|
||||||
|
}
|
||||||
|
await new Promise(c => setTimeout(c, 5000));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
throw new Error('Failed to acquire lease on blob after 30 minutes');
|
||||||
|
}
|
||||||
|
async function processArtifact(artifact, filePath) {
|
||||||
const log = (...args) => console.log(`[${artifact.name}]`, ...args);
|
const log = (...args) => console.log(`[${artifact.name}]`, ...args);
|
||||||
const match = /^vscode_(?<product>[^_]+)_(?<os>[^_]+)(?:_legacy)?_(?<arch>[^_]+)_(?<unprocessedType>[^_]+)$/.exec(artifact.name);
|
const match = /^vscode_(?<product>[^_]+)_(?<os>[^_]+)(?:_legacy)?_(?<arch>[^_]+)_(?<unprocessedType>[^_]+)$/.exec(artifact.name);
|
||||||
if (!match) {
|
if (!match) {
|
||||||
throw new Error(`Invalid artifact name: ${artifact.name}`);
|
throw new Error(`Invalid artifact name: ${artifact.name}`);
|
||||||
}
|
}
|
||||||
// getPlatform needs the unprocessedType
|
const { cosmosDBAccessToken, blobServiceAccessToken } = JSON.parse(e('PUBLISH_AUTH_TOKENS'));
|
||||||
const quality = e('VSCODE_QUALITY');
|
const quality = e('VSCODE_QUALITY');
|
||||||
const commit = e('BUILD_SOURCEVERSION');
|
const version = e('BUILD_SOURCEVERSION');
|
||||||
const { product, os, arch, unprocessedType } = match.groups;
|
const friendlyFileName = `${quality}/${version}/${path_1.default.basename(filePath)}`;
|
||||||
const isLegacy = artifact.name.includes('_legacy');
|
const blobServiceClient = new storage_blob_1.BlobServiceClient(`https://${e('VSCODE_STAGING_BLOB_STORAGE_ACCOUNT_NAME')}.blob.core.windows.net/`, { getToken: async () => blobServiceAccessToken });
|
||||||
const platform = getPlatform(product, os, arch, unprocessedType, isLegacy);
|
const leasesContainerClient = blobServiceClient.getContainerClient('leases');
|
||||||
const type = getRealType(unprocessedType);
|
await leasesContainerClient.createIfNotExists();
|
||||||
const size = fs.statSync(artifactFilePath).size;
|
const leaseBlobClient = leasesContainerClient.getBlockBlobClient(friendlyFileName);
|
||||||
const stream = fs.createReadStream(artifactFilePath);
|
log(`Acquiring lease for: ${friendlyFileName}`);
|
||||||
const [hash, sha256hash] = await Promise.all([hashStream('sha1', stream), hashStream('sha256', stream)]); // CodeQL [SM04514] Using SHA1 only for legacy reasons, we are actually only respecting SHA256
|
await withLease(leaseBlobClient, async () => {
|
||||||
const url = await releaseAndProvision(log, e('RELEASE_TENANT_ID'), e('RELEASE_CLIENT_ID'), e('RELEASE_AUTH_CERT_SUBJECT_NAME'), e('RELEASE_REQUEST_SIGNING_CERT_SUBJECT_NAME'), e('PROVISION_TENANT_ID'), e('PROVISION_AAD_USERNAME'), e('PROVISION_AAD_PASSWORD'), commit, quality, artifactFilePath);
|
log(`Successfully acquired lease for: ${friendlyFileName}`);
|
||||||
const asset = { platform, type, url, hash, sha256hash, size, supportsFastUpdate: true };
|
const url = `${e('PRSS_CDN_URL')}/${friendlyFileName}`;
|
||||||
log('Creating asset...', JSON.stringify(asset, undefined, 2));
|
const res = await (0, retry_1.retry)(() => fetch(url));
|
||||||
await (0, retry_1.retry)(async (attempt) => {
|
if (res.status === 200) {
|
||||||
log(`Creating asset in Cosmos DB (attempt ${attempt})...`);
|
log(`Already released and provisioned: ${url}`);
|
||||||
const aadCredentials = new identity_1.ClientSecretCredential(e('AZURE_TENANT_ID'), e('AZURE_CLIENT_ID'), e('AZURE_CLIENT_SECRET'));
|
}
|
||||||
const client = new cosmos_1.CosmosClient({ endpoint: e('AZURE_DOCUMENTDB_ENDPOINT'), aadCredentials });
|
else {
|
||||||
const scripts = client.database('builds').container(quality).scripts;
|
const stagingContainerClient = blobServiceClient.getContainerClient('staging');
|
||||||
await scripts.storedProcedure('createAsset').execute('', [commit, asset, true]);
|
await stagingContainerClient.createIfNotExists();
|
||||||
|
const now = new Date().valueOf();
|
||||||
|
const oneHour = 60 * 60 * 1000;
|
||||||
|
const oneHourAgo = new Date(now - oneHour);
|
||||||
|
const oneHourFromNow = new Date(now + oneHour);
|
||||||
|
const userDelegationKey = await blobServiceClient.getUserDelegationKey(oneHourAgo, oneHourFromNow);
|
||||||
|
const sasOptions = { containerName: 'staging', permissions: storage_blob_1.ContainerSASPermissions.from({ read: true }), startsOn: oneHourAgo, expiresOn: oneHourFromNow };
|
||||||
|
const stagingSasToken = (0, storage_blob_1.generateBlobSASQueryParameters)(sasOptions, userDelegationKey, e('VSCODE_STAGING_BLOB_STORAGE_ACCOUNT_NAME')).toString();
|
||||||
|
const releaseService = await ESRPReleaseService.create(log, e('RELEASE_TENANT_ID'), e('RELEASE_CLIENT_ID'), e('RELEASE_AUTH_CERT'), e('RELEASE_REQUEST_SIGNING_CERT'), stagingContainerClient, stagingSasToken);
|
||||||
|
await releaseService.createRelease(version, filePath, friendlyFileName);
|
||||||
|
}
|
||||||
|
const { product, os, arch, unprocessedType } = match.groups;
|
||||||
|
const platform = getPlatform(product, os, arch, unprocessedType);
|
||||||
|
const type = getRealType(unprocessedType);
|
||||||
|
const size = fs_1.default.statSync(filePath).size;
|
||||||
|
const stream = fs_1.default.createReadStream(filePath);
|
||||||
|
const [hash, sha256hash] = await Promise.all([hashStream('sha1', stream), hashStream('sha256', stream)]); // CodeQL [SM04514] Using SHA1 only for legacy reasons, we are actually only respecting SHA256
|
||||||
|
const asset = { platform, type, url, hash: hash.toString('hex'), sha256hash: sha256hash.toString('hex'), size, supportsFastUpdate: true };
|
||||||
|
log('Creating asset...');
|
||||||
|
const result = await (0, retry_1.retry)(async (attempt) => {
|
||||||
|
log(`Creating asset in Cosmos DB (attempt ${attempt})...`);
|
||||||
|
const client = new cosmos_1.CosmosClient({ endpoint: e('AZURE_DOCUMENTDB_ENDPOINT'), tokenProvider: () => Promise.resolve(`type=aad&ver=1.0&sig=${cosmosDBAccessToken.token}`) });
|
||||||
|
const scripts = client.database('builds').container(quality).scripts;
|
||||||
|
const { resource: result } = await scripts.storedProcedure('createAsset').execute('', [version, asset, true]);
|
||||||
|
return result;
|
||||||
|
});
|
||||||
|
if (result === 'already exists') {
|
||||||
|
log('Asset already exists!');
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
log('Asset successfully created: ', JSON.stringify(asset, undefined, 2));
|
||||||
|
}
|
||||||
});
|
});
|
||||||
log('Asset successfully created');
|
log(`Successfully released lease for: ${friendlyFileName}`);
|
||||||
}
|
}
|
||||||
// It is VERY important that we don't download artifacts too much too fast from AZDO.
|
// It is VERY important that we don't download artifacts too much too fast from AZDO.
|
||||||
// AZDO throttles us SEVERELY if we do. Not just that, but they also close open
|
// AZDO throttles us SEVERELY if we do. Not just that, but they also close open
|
||||||
@@ -518,16 +596,19 @@ async function main() {
|
|||||||
for (const name of done) {
|
for (const name of done) {
|
||||||
console.log(`\u2705 ${name}`);
|
console.log(`\u2705 ${name}`);
|
||||||
}
|
}
|
||||||
const stages = new Set(['Compile', 'CompileCLI']);
|
const stages = new Set(['Compile']);
|
||||||
|
if (e('VSCODE_BUILD_STAGE_LINUX') === 'True' ||
|
||||||
|
e('VSCODE_BUILD_STAGE_ALPINE') === 'True' ||
|
||||||
|
e('VSCODE_BUILD_STAGE_MACOS') === 'True' ||
|
||||||
|
e('VSCODE_BUILD_STAGE_WINDOWS') === 'True') {
|
||||||
|
stages.add('CompileCLI');
|
||||||
|
}
|
||||||
if (e('VSCODE_BUILD_STAGE_WINDOWS') === 'True') {
|
if (e('VSCODE_BUILD_STAGE_WINDOWS') === 'True') {
|
||||||
stages.add('Windows');
|
stages.add('Windows');
|
||||||
}
|
}
|
||||||
if (e('VSCODE_BUILD_STAGE_LINUX') === 'True') {
|
if (e('VSCODE_BUILD_STAGE_LINUX') === 'True') {
|
||||||
stages.add('Linux');
|
stages.add('Linux');
|
||||||
}
|
}
|
||||||
if (e('VSCODE_BUILD_STAGE_LINUX_LEGACY_SERVER') === 'True') {
|
|
||||||
stages.add('LinuxLegacyServer');
|
|
||||||
}
|
|
||||||
if (e('VSCODE_BUILD_STAGE_ALPINE') === 'True') {
|
if (e('VSCODE_BUILD_STAGE_ALPINE') === 'True') {
|
||||||
stages.add('Alpine');
|
stages.add('Alpine');
|
||||||
}
|
}
|
||||||
@@ -561,12 +642,12 @@ async function main() {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
console.log(`[${artifact.name}] Found new artifact`);
|
console.log(`[${artifact.name}] Found new artifact`);
|
||||||
const artifactZipPath = path.join(e('AGENT_TEMPDIRECTORY'), `${artifact.name}.zip`);
|
const artifactZipPath = path_1.default.join(e('AGENT_TEMPDIRECTORY'), `${artifact.name}.zip`);
|
||||||
await (0, retry_1.retry)(async (attempt) => {
|
await (0, retry_1.retry)(async (attempt) => {
|
||||||
const start = Date.now();
|
const start = Date.now();
|
||||||
console.log(`[${artifact.name}] Downloading (attempt ${attempt})...`);
|
console.log(`[${artifact.name}] Downloading (attempt ${attempt})...`);
|
||||||
await downloadArtifact(artifact, artifactZipPath);
|
await downloadArtifact(artifact, artifactZipPath);
|
||||||
const archiveSize = fs.statSync(artifactZipPath).size;
|
const archiveSize = fs_1.default.statSync(artifactZipPath).size;
|
||||||
const downloadDurationS = (Date.now() - start) / 1000;
|
const downloadDurationS = (Date.now() - start) / 1000;
|
||||||
const downloadSpeedKBS = Math.round((archiveSize / 1024) / downloadDurationS);
|
const downloadSpeedKBS = Math.round((archiveSize / 1024) / downloadDurationS);
|
||||||
console.log(`[${artifact.name}] Successfully downloaded after ${Math.floor(downloadDurationS)} seconds(${downloadSpeedKBS} KB/s).`);
|
console.log(`[${artifact.name}] Successfully downloaded after ${Math.floor(downloadDurationS)} seconds(${downloadSpeedKBS} KB/s).`);
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user