aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src/net.ts
Commit message (Collapse)AuthorAgeFilesLines
* Make extension respect http proxy settingsKam Y. Tse2021-03-071-3/+22
|
* Simplify file download codeLaurențiu Nicola2021-01-251-8/+1
|
* Code: reduce progress notification spamLaurențiu Nicola2021-01-251-7/+9
|
* Remove workaround & fix fetch$1 is not a functionKafji2020-12-081-4/+1
| | | | | | | | | Remove workaround for https://github.com/rollup/plugins/issues/491 because it's fixed in 15.0 https://github.com/rollup/plugins/blob/master/packages/commonjs/CHANGELOG.md#v1500. Also fix fetch$1 is not a function error https://github.com/rust-analyzer/rust-analyzer/issues/6757.
* Fix lintMatthias Einwag2020-09-231-1/+1
|
* Move unlink on download into download functionMatthias Einwag2020-09-231-0/+8
| | | | | Since this is required by all callsites its easier to have it in the function itself.
* Use closure in trailing position and strongly type header mapMatthias Einwag2020-09-231-1/+1
|
* Allow to use a Github Auth token for fetching releasesMatthias Einwag2020-09-231-2/+8
| | | | | | | | | | | | | | | | | | | This change allows to use a authorization token provided by Github in order to fetch metadata for a RA release. Using an authorization token prevents to get rate-limited in environments where lots of RA users use a shared client IP (e.g. behind a company NAT). The auth token is stored in `ExtensionContext.globalState`. As far as I could observe through testing with a local WSL2 environment that state is synced between an extension installed locally and a remote version. The change provides no explicit command to query for an auth token. However in case a download fails it will provide a retry option as well as an option to enter the auth token. This should be more discoverable for most users. Closes #3688
* Gate stream.pipeline workaround on fixed versions of nodeVeetaha2020-08-211-0/+8
|
* Workaround rollup messing up default importsVeetaha2020-07-081-1/+4
|
* Gzip artifactsVeetaha2020-07-071-8/+8
| | | | | | | | | | Co-authored-by: bjorn3 <[email protected]> Override miniz_oxide to build it with optimizations Building this crate with optimizations decreases the gzipping part of `cargo xtask dist` from `30-40s` down to `3s`, the overhead for `rustc` to apply optimizations is miserable on this background
* Append 10 random hex chars to temp artifact filesVeetaha2020-06-241-1/+5
|
* Don't mess with messy temp dir and just download into extension dirVeetaha2020-06-241-57/+23
| | | | | | | | Temp dirs are messy. Dealing with them requires handling quite a bunch of edge cases. As proposed by lnicola this seems better to just put the temp files in the extension dir and not care much about suddenly leaving garbage. Instead we get shorter and less platform-caveat-y code. We will also assume users don't try to issue a download in different vscode windows simultaneously
* Decouple http file stream logic from temp dir logicVeetaha2020-06-221-42/+46
|
* Hotfix skipping the first chunks of the artifactsVeetaha2020-06-221-6/+7
|
* Download artifacts into tmp dirVeetaha2020-06-201-10/+45
|
* Update workaround commentVeetaha2020-06-191-3/+2
|
* Rewrite auto-updateAleksey Kladov2020-03-191-0/+131
Everything now happens in main.ts, in the bootstrap family of functions. The current flow is: * check everything only on extension installation. * if the user is on nightly channel, try to download the nightly extension and reload. * when we install nightly extension, we persist its release id, so that we can check if the current release is different. * if server binary was not downloaded by the current version of the extension, redownload it (we persist the version of ext that downloaded the server).