Commit Graph

50 Commits

Author SHA1 Message Date
Benjamin Pasero 393cc7f4a2 debt - consolidate process usage 2021-03-15 15:59:35 +01:00
Benjamin Pasero 1260de1c10 sandbox - move workspace tags to sandbox 2021-03-05 16:15:10 +01:00
Benjamin Pasero dbbf2b1688 shell env - introduce a service to resolve shell env as promise (#108804) 2021-03-05 07:47:53 +01:00
Johannes Rieken 4aff4b9923 trusted types - loader should use trusted script url when using script tags, https://github.com/microsoft/vscode/issues/103699 2021-01-07 11:14:35 +01:00
Benjamin Pasero 169a0ec047 sandbox - allow to enable vscode-file protocol via argv or environment (#98682) 2021-01-06 15:30:38 +01:00
Johannes Rieken c87c95a1a0 prefix our performance marks with code/, e.g code/didStartRenderer etc 2020-12-14 15:49:58 +01:00
Johannes Rieken ec5da6d09c remove direct writes to globalThis.MonacoPerformanceMarks, use native performance instead, import native performance entries into timer service, fyi @bpasero 2020-12-14 11:12:30 +01:00
Benjamin Pasero 1a1db8f00e bootstrap - add more typing info 2020-12-14 08:23:30 +01:00
Benjamin Pasero 392b6a94e0 perf - remove redundant performance usages
@jrieken fyi
2020-11-26 07:42:05 +01:00
Benjamin Pasero 37e9cceddc Enable sandbox, contextIsolation and vscode-file for process explorer and issue reporter (#111304)
* Enable sandbox for issue reporter and process explorer (fix #101834)

* sandbox - enable vscode-file protocol for sandboxed renderers

* issues - stop setting nodeCachedDataDir

* address feedback and also use vscode-file for shared process if sandbox is on
2020-11-25 16:46:03 +01:00
Benjamin Pasero e8ba7e51ee bootstrap - fix compile errors 2020-11-24 09:53:00 +01:00
Benjamin Pasero 1273299f3d 💄 bootstrap-window 2020-11-20 12:08:07 +01:00
Benjamin Pasero 6f3fcd2ce0 env - move shell env into bootstrap-window and let user env win over shell env 2020-11-20 11:57:24 +01:00
Benjamin Pasero 65f805d98e fix build 2020-11-10 08:17:14 +01:00
Benjamin Pasero eb8c718e81 debt - fix compile errors in bootstrap files 2020-11-09 09:03:14 +01:00
Sandeep Somavarapu 88144f6d31 Fix #80698
- Inline semver
2020-10-26 12:12:07 +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 7c5934902c sandbox - self invoke functions for shared process, issues and process explorer 2020-09-22 08:40:57 +02:00
Benjamin Pasero 5497e60ed2 sandbox - consolidate fileUriFromPath into one 2020-09-22 08:14:45 +02:00
Alex Dima aa2a14c6dd Loader config for node modules when running with sandbox 2020-09-18 13:08:00 +02:00
Robo 836fbb1b5d fix: preserve zoom level on navigation (#104268) 2020-08-07 13:06:01 -07: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 bb95f3aa40 Adopt loader's amdModulesPattern option 2020-07-07 23:30:27 +02:00
Benjamin Pasero fe94804601 bootstrap - use preload script to access Electron IPC 2020-07-07 09:19:36 +02:00
Benjamin Pasero c7fe3b41ae perf - set zoom level from electron-main and stop using webFrame in renderer unless changing zoom
//cc @deepak1556
2020-07-07 08:38:12 +02:00
Alex Dima 4deff1a75b Load loader.js via a <script> tag 2020-06-24 17:19:19 +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
Matt Bierner 273a4a389d Convert most ts-ignore-calls to ts-expect-error (#93617)
Changes over to use ts-expect-error: https://devblogs.microsoft.com/typescript/announcing-typescript-3-9-beta/#ts-expect-error-comments

This revealed a number of places where we no longer need to supress errors
2020-03-30 17:31:37 -07:00
Benjamin Pasero 9eedabce7b debt - move native pieces of window config into node layer 2020-03-02 12:35:26 +01:00
Peng Lyu 9cea9f3035 Error can be null/undefined. 2020-02-20 09:47:07 -08:00
Alexandru Dima 32662b3639 Do not swallow loader errors 2019-10-30 15:52:09 +01:00
Jackson Kearl 11b28d3872 Disallow reloading in issue reporter. Fixes #77171 (#82131) 2019-10-09 13:58:40 -07:00
Martin Aeschlimann 7a67a54e5e extensionDevelopmentPath is string[] 2019-09-05 15:46:05 +02:00
Andre Weinand e07de5b3ad support debuging more than one extension; fixes #71081 2019-04-04 16:11:13 +02:00
Benjamin Pasero 0f5d764111 bootstrap - move zoom setting up 2019-02-12 07:31:34 +01:00
Rob Lourens ef2547d547 replace void 0 with undefined 2019-01-03 11:20:19 -08:00
Benjamin Pasero 0bcf5cff8a Update to Electron 3.0.10 (#56149)
* update to 3.0.0-beta.3

* update d.ts files; rename NodeBuffer => Buffer

* update to 3.0.0-beta.4

* undo invalid change

* remove some Electron 2.0.x specific workarounds

* pinch zoom is now disabled by default

* update vscode-nsfw

* change vscode-nsfw

* update smoke test electron version

* streams: use destroy() over close()

* workaround broken tests

* bump distro and OSS

* try to bump node version for build

* update macOS build to use node.js 10.8.0

* fix extension tests

* use node.js 10.2.1 for all builds

* remove nsfw from dev dependencies

* back to node 8.x for build

* Revert "back to node 8.x for build"

This reverts commit 90ea2b7af2.

* update distro

* disable test run on macOS prod build for now

* bump distro

* ensure proper nsfw dep

* fix more native dependencies

* temp disable failing test

* fix packages

* update deps

* fix deps

* update deps

* enable macOS unit tests again

* fix deprecated buffer use

* Electron 3.0.0.beta.5

* bump deps

* fix tree accidentally treating auxclick as click

* improve overlay cleanup scheduler (fixes flicker seen with Electron 3.0.x)

* update distro

* remove obsolete disableBlinkFeatures: 'Auxclick'

* update to Electron 3.0 beta 6

* fix compile

* workaround #56994

* do not use backgroundColor to find shared process (causes flicker)

* fix flicker on windows from shared process background color

* webview - bubble up keyboard events (workaround for #56988)

* bump electron to 3.0.0-beta.8

* webview - fix deprecation

* webview - fix another deprecation

* debt - handle SIGPIPE on more processes

* workaround more webview focus issues (for #56988)

* webview - use proper way to focus()

* debt - avoid window-focus/blur and use native focus events instead

* webview - restore previous focus method

* webview - improve focus tracking (do not rely on DOM events)

* bump to electron 3.0.0-beta.9

* update deps

* update electron@3.0.0-beta.10

* webview - do not rely on DOM focus for certain commands (for #56988)

* update to electron@3.0.0-beta.11

* electron@3.0.0-beta.12

* update to beta 13

* update to electron 3.0.0

* update to Electron 3.0.1

* electron@3.0.2

* revert build changes (node.js version)

* try with: enable mojave dark mode support

* fix types

* electron 3.0.3

* electron@3.0.4

* fix deps

* bump electron@3.0.6

* bump electron@3.0.9

* fix strict null issue

* reset format

* bump electron@3.0.10

* fix strict null issue

* webview - print error when revive fails

* electron 3.0.x - try to fix keybindings in webviews (#64417)

* bump @types/node => ^10.12.12

* 💄

* update distro
2018-12-10 12:54:38 +01:00
Benjamin Pasero 3c8302a762 another fix for #62719 2018-11-30 17:56:31 +01:00
Johannes Rieken 2c531e2ede only set nodeCachedData-prop when having a dir, #60332 2018-11-27 15:57:38 +01:00
Johannes Rieken 2319dc2389 adopt new loader, make sure each loader instance has a static seed so that filenames don't conflict, #63605 2018-11-27 15:50:24 +01: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 38e76c0214 fix bootstrap issues 2018-09-07 17:25:18 +02:00
Benjamin Pasero f3b191ab38 @ts-check for bootstrap JS files 2018-09-07 16:05:28 +02:00
Alex Dima de17948191 Simplify the loading of the loader in the renderer processes 2018-09-07 12:59:08 +02:00
Benjamin Pasero a4bf919e59 Cleanup bootstrap files (#58171)
* bootstrap  - first cut

* bootstrap => bootstrap-fork, bootstrap-shared => bootstrap

* bootstrap - extract uriFromPath()

* bootstrap - extract readfile/writefile

* bootstrap - share more code when loading renderers

* boostrap-electron-browser => bootstrap-window

* bootstrap - cleanup main.js

* bootstrap - handle index.js

* bootstrap 💄
2018-09-07 12:23:09 +02:00