Commit graph

73 commits

Author SHA1 Message Date
Benjamin Pasero a1c783c20c
fs - retry rename on Windows and adopt (#188899)
* fs - retry `rename` on Windows and adopt

* return early if target is not a file

* proper throw error

* align move and rename

* fix compile

* tests
2023-07-28 17:17:50 +02:00
Benjamin Pasero 8a652f9380
🚀 sandbox - enable by default and remove setting 🚀 (#181638)
* sandbox - enable by default and remove setting

* remove more

* set flags again

* fix lint

* more cleanup
2023-05-12 13:36:29 +02:00
Connor Peet dec4735ed6
server: fix cpu loop on SIGPIPE (#170305)
- One missed uncaughtException site was causing a loop (maybe we want
  to handle this error on onUnexpectedError instead?)
- The SIGPIPE listener itself was causing a loop, as well. Only try to log once.
2023-01-17 19:25:58 +00:00
Matt Bierner 5d5280012e
Include server-main.js in main TS project (#168375)
* Include server-main.js in main TS project

Fixes #167055

This fixes a conflict in the `@types/node` types in this file

* Fixing a few more type errors

* Fix typing of `onLoad`
2023-01-09 15:20:15 -08:00
Benjamin Pasero 8231c8ccad
debt - remove avoidMonkeyPatchFromAppInsights 2022-09-04 07:43:29 +02:00
Benjamin Pasero f4f1b04d87
Add a setting to enable sandbox: true for windows (#154062)
* sandbox - allow enabled sandbox in a full build

* sandbox - reduce `electron-browser` in workbench

* sandbox - reduce `electron-browser` in platform

* sandbox - add a setting to enable sandbox mode for window

* fix lint

* Revert "sandbox - reduce `electron-browser` in workbench"

This reverts commit 36a5167cf9.

* Revert "sandbox - reduce `electron-browser` in platform"

This reverts commit 6f49d704a5.

* fix layer issue

* fix some js errors
2022-07-05 09:54:28 +02:00
Jean Pierre 9d5e79cec2
Fixes #148447 (#148456) 2022-04-29 14:02:57 -07:00
Alex Dima ed63059a47
Fixes microsoft/vscode-remote-release#6543: Go through the unexpected error handler (which has async endless loop protection) instead of using the console in the SIGPIPE handler 2022-04-28 17:14:19 +02:00
Benjamin Pasero ec5486b98f
sandbox - clean up some todos 2021-11-11 08:29:56 +01:00
Benjamin Pasero 9a404e5278
💄 2021-11-10 13:42:39 +01:00
Benjamin Pasero b180991240
asar - introduce alternative path to circumvent drive letter casing issues (#131161)
* asar - introduce alternative path to circumvent drive letter casing issues (#128725)

* Insert at most one additional lookup path

Co-authored-by: Alex Dima <alexdima@microsoft.com>
2021-08-19 11:29:42 +02:00
Akat 77905c850e
fix some typo in comments, renaming few methods (#130470) 2021-08-11 17:57:48 -07:00
Benjamin Pasero b6ca3e52ae
Remove dependency on node require for startup code path (#130088)
* sandbox - disable support to enable file protocol

* mitigate symlinks on different drives
2021-08-04 10:45:11 +02:00
Alexandru Dima 1dab1072ff
Fixes #126533: Make sure the ASAR path is always added for renderer processes 2021-06-18 17:07:54 +02:00
Benjamin Pasero 30f0d188c7
sandbox - prefer sandbox types over node.js types 2021-04-06 09:51:18 +02:00
Benjamin Pasero 393cc7f4a2
debt - consolidate process usage 2021-03-15 15:59:35 +01:00
Benjamin Pasero d30c12dc6b debt - fix some types in bootstrap JS files 2021-02-01 10:34:42 +01:00
Benjamin Pasero 1460908e18 bootstrap - move portable mode into bootstrap-node 2020-11-25 08:46:40 +01:00
Benjamin Pasero 2433e29383 sandbox - use IPC communication to read bundles 2020-11-25 08:16:37 +01:00
Benjamin Pasero 723ee37c02 bootstrap - expose preload process to base lib 2020-11-24 10:23:05 +01:00
Benjamin Pasero 41025928ad bootstrap - fix more compile errors 2020-11-24 10:03:19 +01:00
Benjamin Pasero e8ba7e51ee bootstrap - fix compile errors 2020-11-24 09:53:00 +01:00
Benjamin Pasero eb8c718e81 debt - fix compile errors in bootstrap files 2020-11-09 09:03:14 +01:00
Benjamin Pasero 7f035b4be7 debt - introduce and adopt FileAccess
deprecate amd.ts and require.toUrl methods
2020-09-25 14:11:05 +02:00
Benjamin Pasero 5497e60ed2 sandbox - consolidate fileUriFromPath into one 2020-09-22 08:14:45 +02:00
Benjamin Pasero e5b3ff76ba
Enable sandbox and contextIsolation for process explorer when running with --__sandbox (#102924)
* sandbox - allow to enable sandbox and contextIsolation for process explorer

* fix asar lookup
2020-07-20 10:30:20 +02:00
Alex Dima c9dc040ad7
Fix drive casing issue on windows 2020-06-25 20:02:17 +02:00
Benjamin Pasero a3f86f0923
Drop node.js require for bootstrap and bootstrap-window (#100857)
* sandbox - load bootstrap/bootstrap-window via script tags (workbench)

* sandbox - adopt script loading for issue reporter and process explorer
2020-06-24 09:07:14 +02:00
Benjamin Pasero 6445a85f1c bootstrap - move some methods that are only used once 2020-06-23 14:18:26 +02:00
Benjamin Pasero 560b21efa4 Crash reporter creates two directories (fix #99149) 2020-06-03 10:22:52 +02:00
Alex Dima ffbb280a36
Fixes #68024 2020-03-09 14:51:53 +01:00
Joao Moreno 545e066ccd
fixes #83998 2019-11-11 11:55:25 +01:00
Benjamin Pasero 4fcd312728
Adopt recursive fs.mkdir from node.js 12 (fix #82617) (#83831)
* Adopt recursive fs.mkdir from node.js 12 (fix #82617)

* fix tests
2019-11-01 14:55:04 +01:00
Alexandru Dima 6b4d9860a5
Fixes microsoft/vscode-remote-release#1632: Handle case where paths are null 2019-10-29 11:35:03 +01:00
Benjamin Pasero 23956cc5e2 update to electron 6.0.x (#81644)
* update to electron 6.0.x

* chore: bump electron@6.0.12
2019-10-10 12:26:28 -07:00
Benjamin Pasero da76f05e7a electron - revert to Electron 4 2019-09-30 14:55:17 +02:00
Robo 029e9929ae chore: Update to Electron 6.x (#75802) 2019-09-13 14:53:56 +02:00
Max Belsky d3605cc532 Use const instead of let 2019-08-27 09:56:19 -07:00
Alex Dima 03a9aca859 Add support for injecting node module lookup path 2019-04-10 22:58:42 +02:00
Dirk Baeumer 7002a63fad Move language pack processing code to common 2019-02-20 19:27:08 +01:00
Benjamin Pasero 9a28248b52 💄 2019-01-07 12:54:57 +01:00
Tereza Tomcova e9d6a653e6 bootstrap - handle UNC paths correctly (#66128)
fixes #53857
2019-01-07 12:51:26 +01:00
Benjamin Pasero 113459ae64 sqlite - next storage service adoption 2018-10-12 10:29:42 +02:00
Joao Moreno 84658f7414 prevent portable in windows setup
fixes #57990
2018-09-26 17:28:02 +02:00
Ramya Rao ae526292df
Upgrade appinsights (#58999)
* Upgrade appinsights

* Env, global updates before starting shared process

* Disable console logging from appinsights Fixes #55417

* Move workaround to helper
2018-09-22 23:09:48 -07:00
Benjamin Pasero 1e98303d91 bootstrap - move workbench.js to electron-code 2018-09-10 07:48:52 +02:00
Benjamin Pasero 8c6051e032 another attempt at ASAR 2018-09-07 20:30:49 +02:00
Benjamin Pasero d649ac014d fix ASAR path again 2018-09-07 19:30:50 +02:00
Benjamin Pasero d1ec72c2a0 fix ASAR for windows 2018-09-07 17:39:21 +02:00
Benjamin Pasero f3b191ab38 @ts-check for bootstrap JS files 2018-09-07 16:05:28 +02:00