Граф коммитов

1211 Коммитов

Автор SHA1 Сообщение Дата
Noah Gilson a74899bef6 Clean up text with issue template forms 2023-11-22 16:11:43 -08:00
Noah Gilson d70ac7ca28 Move all templates to gh forms 2023-11-22 15:59:28 -08:00
Noah Gilson b4f42aab46 add placeholder to see if it counts as required text 2023-11-22 15:16:11 -08:00
Noah Gilson a483c5bd35 add a textarea as its required to have non markdown components but we dont want ppl to submit these issues publically 2023-11-22 15:10:16 -08:00
Noah Gilson dcdc665326 Migrate the security template to the new gh form 2023-11-22 15:02:32 -08:00
Noah Gilson d4b89c35cc
Merge pull request #1555 from nagilson/nagilson-linux-version-cvg
Dont fail for unknown versions of Ubuntu by estimating a closest version
2023-11-22 14:42:24 -08:00
Noah Gilson 6058b5483e
Merge branch 'main' into nagilson-linux-version-cvg 2023-11-22 11:32:00 -08:00
Noah Gilson 6f18313537
Merge pull request #1549 from nagilson/nagilson-improve-timeout-handg
Improve timeout error handling
2023-11-22 11:30:54 -08:00
Noah Gilson ed17739499 Fix linting issue 2023-11-15 16:06:02 -08:00
Noah Gilson b356b8e1c6 Account for versions of linux that we dont have mapped
The theory is a version with the same major but with the maximum lower minor will be the closest in behavior, then the maximum version that is lower than the current version is most likely to have the same behavior. If there is no smaller known version, it will just use the minimum version that is higher.

This logic may not always work. But with the given circumstances, we are covered by including the first version where preinstall commands were not needed
2023-11-15 15:31:44 -08:00
Noah Gilson 92a5276a5f Fix object object output to give distro name 2023-11-15 14:37:37 -08:00
Noah Gilson 9e1077a3f6 Delete acquisition promise at the end
This should prevent us from thinking something is still installed when it is not.
This is a huge behavioral change in the product.
2023-11-15 14:09:33 -08:00
Noah Gilson 6b9d4fddcd Make uninstall function local only 2023-11-15 13:51:36 -08:00
Noah Gilson 95b42b4377 Dont remove global install keys upon uninstall all as they are not removed 2023-11-15 13:26:51 -08:00
Noah Gilson a955f45f7b Delete 'InstallingVersions' Install Key Upon Failure
So it appears that whenever an error occurs we never removed the installing version from the extension state.
2023-11-15 13:16:34 -08:00
JL03-Yue 8d40149747
Merge branch 'main' into nagilson-improve-timeout-handg 2023-11-14 17:09:06 -08:00
Noah Gilson a20e205dbf
Merge pull request #1540 from nagilson/nagilson-storage-timeout
Fix Axios Storage Handler to Handle Timeout & TLS Handshake Properly
2023-11-14 15:41:42 -08:00
Noah Gilson db2a127472 Respond to linter
Improve code clarity with better variable names.
2023-11-14 15:10:48 -08:00
Noah Gilson 3b1c2512c5 Improve timeout error handling
Axios already has its own timeout, so we dont need a 2nd timeout handler,  I was able to confirm it works by using https://httpstat.us/524, and it does report the time it took to timeout in a similar fashion. We will get more information from errors this way when it is available.
2023-11-14 15:05:47 -08:00
Noah Gilson a4769d9891
Merge branch 'main' into nagilson-storage-timeout 2023-11-14 10:06:45 -08:00
Noah Gilson f86467cac7 Switch to memory based storage
This means the cache will not persist over different vscode windows, which is not optimal. However, until vs code does not fail with circular json references or non json objects with this cache, we do not seem to have ways to filter what goes into the cache and what does not. Even for one request, the no cache method still ends up putting things into the storage, see: https://axios-cache-interceptor.js.org/config/request-specifics#cache. Then, the request object given to set does allow us to filter some of the content per request, but even then, one request seems to cause multiple potential cache entries. In addition, I looked at the code of the axios-cache-interceptor- and the loading state never gets updated until something is in the cache, so my previous code was based on incorrect assumptions, even if the logic would have worked if we had that kind of graunlar control
2023-11-14 09:38:46 -08:00
Noah Gilson 714d2313f1 start propagating the install version to tests as the new api requires that 2023-11-13 09:30:19 -08:00
Noah Gilson c6191b3acd move loading check to before we check if json is valid 2023-11-13 09:29:27 -08:00
Noah Gilson 93ecd08fd0 dont jsonify result as vscode's storage already does that 2023-11-13 09:20:44 -08:00
Noah Gilson e62c3ddde7
Merge pull request #1535 from nagilson/nagilson-catch-failed-deletion
Dont fail install if we dont have permission to clean up installer file
2023-11-12 15:16:36 -08:00
JL03-Yue e7b91cb609
Merge branch 'main' into nagilson-catch-failed-deletion 2023-11-12 15:07:11 -08:00
Noah Gilson 70f73afe44
Merge pull request #1507 from dotnet/fix-missing-description-text
Update package.json to fix reference to just .NET Runtime
2023-11-10 11:59:40 -08:00
Noah Gilson 3864e23fb6
Merge branch 'main' into fix-missing-description-text 2023-11-10 11:59:32 -08:00
Noah Gilson cd51232827
Merge branch 'main' into nagilson-storage-timeout 2023-11-10 11:29:37 -08:00
Noah Gilson c8b95d7795
Merge branch 'main' into nagilson-catch-failed-deletion 2023-11-10 11:29:22 -08:00
Noah Gilson 93b17b88fc
Merge pull request #1534 from nagilson/nagilson-log-file-verification
Log Installer File Verification
2023-11-10 11:29:09 -08:00
Noah Gilson 26e8301366
Merge branch 'main' into nagilson-catch-failed-deletion 2023-11-10 11:28:34 -08:00
Noah Gilson eebebf327e
Merge branch 'main' into nagilson-log-file-verification 2023-11-10 11:28:21 -08:00
Noah Gilson e6558b208e
Merge pull request #1533 from nagilson/nagilson-update-distro-schema
Update distro support schema to match partner feedback changes
2023-11-10 11:27:23 -08:00
JL03-Yue e043db5c04
Merge branch 'main' into nagilson-log-file-verification 2023-11-10 10:51:31 -08:00
JL03-Yue 0ca721ab71
Merge branch 'main' into nagilson-update-distro-schema 2023-11-10 10:38:03 -08:00
Noah Gilson 515d9d30d2 Fix Axios Storage Handler to Handle Timeout & TLS Handshake Properly
https://axios-cache-interceptor.js.org/guide/storages The storage handler is supposed to prevent timed out requests from going into the cache per the documentation which it does not do.

Also, VS Code will try to unwrap a circular reference which the request will be circular in the TLS handshake. This is a 'bug' in serializeRequestArguments in extensionHostProcess.js from VS Code. This will prevent us from removing from the extension state in the future as trying to access it will cause an exception and cancel the request
2023-11-09 16:55:54 -08:00
Noah Gilson 29cd685551
Merge pull request #1532 from nagilson/nagilson-test-only-x64
Migrate to x64 VS Code instances for testing as 32-bit is unsupported
2023-11-09 15:05:37 -08:00
Noah Gilson 7d5c94913a Dont fail install if we dont have permission to clean up installer file
This is in the dist folder, it should* be cleaned up worst case by upgrade/uninstall of the extension, we dont want to fail everything if we dont have perm to delete, this is a win arm64 problem for whichever reason
2023-11-09 10:01:01 -08:00
Noah Gilson c376d9ae64 Log verification of install files 2023-11-09 09:55:50 -08:00
Noah Gilson b40b51f341 Update distro support schema to match partner feedback changes, including a search command and shared package names across versions to minimize duplication 2023-11-09 09:53:40 -08:00
Noah Gilson 214da6a320 Migrate to x64 VS Code instances for testing as 32-bit is unsupported now 2023-11-09 09:46:29 -08:00
Noah Gilson 27072fcebb wip -- add version to acquisition context mocks so that information is available for tests 2023-11-09 09:23:36 -08:00
Noah Gilson e1fafd6d84 Code cleanup
remove extra sdk feature band check thats already done in the linux distro code
make the context optional in places where it may not actually exist, e.g. if vs code telemetry setting is changed before we call an acquire command, there would be no acquire context
2023-11-08 16:09:39 -08:00
Noah Gilson 942f41319a Fix the schema type
The json schema called the types objects but its an array of objects
2023-11-08 14:56:50 -08:00
Noah Gilson d7b0ea9bdc Fix circular dependency tree (TypeError: Class extends value undefined is not a constructor or null)
- First moving the mock object import in index.ts resolved the dependency loading order problem where classes were being imported out of order

- Then, removing the getInstallKey function out of the worker prevented loading the vscode module which will always cause a failure in the library tests

- Also cleans up imports and adds whitespace

Some problems remain post refactor which I will fix next
2023-11-08 14:51:56 -08:00
Noah Gilson 48ebedcf28 Use 64 bit vscode on test
32 bit was the default platform and it is deprecated
2023-11-08 11:29:44 -08:00
Noah Gilson 17918293ad Update the distro schema file to match the new specifications
This is after our partner feedback was addressed but I did not have time to update it then
2023-11-08 10:18:55 -08:00
Noah Gilson c1680ff603 Update classes to all have worker contexts
Do this to deduplicate event stream, timeout time, extension state, proxy url, arch, and install key so we can throw errors from other places

uses a hack for the telemetry observer because it needs to be created before the acquisition context can be created
2023-11-08 10:18:25 -08:00
Noah Gilson b73b453068 Log verification of install files 2023-11-07 10:10:51 -08:00