Commit Graph
3357 Commits
Author SHA1 Message Date
RoboandGitHub b4952d14a4 fix: remove emulation check and notification on windows (#186008) 2023-06-26 04:32:19 +02:00
Connor PeetandGitHub 8256e0d0ae fix: use the right scheme for new managed remote resources (#185897)
Fixes #185886
2023-06-22 19:40:12 +02:00
Henning DieterichsandGitHub 25f01f5791 Removes diffEditorWidget2 trusted type, uses diffEditorWidget TT instead. (#185895) 2023-06-22 10:30:59 -07:00
Connor PeetandGitHub 55bb8f1a17 remote: allow loading resources for managed remote authorities (#185720)
This implements basically the same 'loopback' that vscode.dev does via
a service worker to load resources for managed remote authorities in
Electron. Except instead of using a service worker, it uses a buffer
protocol via a new 'vscode-managed-remote-resource' scheme. It finds
the window that the request came from and asks it to load the remote
file.

I initially looked at folding it into the existing 'vscode-remote-resource'
scheme, but we needed a "buffer protocol" for this and it seems http
protocols can _only_ respond with an HTTP URL, which we don't want here.
2023-06-21 11:07:08 +02:00
65b471f4e2 Feat: #132598 Add notification in case of running a translated build on windows and macOS (#181191)
* added notification in case of running a rosetta translated build

* using app.runningUnderARM64Translation instead of system call

* added download button to the download page in the wrong build notification

* removed test call

* Update src/vs/workbench/electron-sandbox/window.ts

Co-authored-by: Robo <hop2deep@gmail.com>

* Update src/vs/workbench/electron-sandbox/window.ts

Co-authored-by: Robo <hop2deep@gmail.com>

* code format

* Update src/vs/workbench/electron-sandbox/window.ts

Co-authored-by: Robo <hop2deep@gmail.com>

---------

Co-authored-by: Robo <hop2deep@gmail.com>
2023-06-20 14:52:27 +09:00
Daniel Imms 72006e3596 Improve pty host tracing and add simulated latency/startup delay settings 2023-06-15 07:22:30 -07:00
Tyler James LeonhardtandGitHub b07469d8e3 First move off of keytar (#185077)
* First move off of keytar

Since keytar is now deprecated, we need a solution going forward. That solution is the electron safeStorage API.

This PR:
* Uses the Electron safeStorage API for encryption
* Since we have encrypted strings we then store them in the StorageService (at the application & machine level)

This PR also refactors things quite a bit... a diagram of the change is going to be in the PR.

It gives embedders the ability to override the behavior of the secret storage similar to the existing Credential Provider embedder API... only with a better API surface since we no longer need to conform to keytar's shape.

More will come after this PR such as:
* Converting all CredentialService usages to SecretStorageService usages

After a while:

* Removing MainThreadKeytar
* Removing all the old code marked in this PR

* Use InMemoryStorageService

* use pausable emitter
2023-06-14 20:09:24 +02:00
Benjamin PaseroandGitHub 8e26c332de Warning message doesn't show up when code-insiders --status is run while no instances are open (#185080)
* Warning message doesn't show up when `code-insiders --status` is run while no instances are open (fix #185069)

* 💄
2023-06-14 08:43:26 +02:00
Henning DieterichsandGitHub 6cd5ac180a Implements inline diff view in diff editor v2. (#184735) 2023-06-09 10:43:06 -07:00
Benjamin PaseroandGitHub fa84a900fa code --status displays a lot of errors before actual status output (#183787) (#184199)
fix 183787
2023-06-02 20:40:41 +02:00
RoboandGitHub 23850e2363 fix: reading from console output for --status on windows and linux (#184118) 2023-06-02 15:01:16 +09:00
Benjamin PaseroandGitHub 66ad45b79a cli - ignore std error unless verbose (#183787) (#184031) 2023-06-01 10:32:33 +02:00
Benjamin PaseroandGitHub 2a8dea3225 code --status displays a lot of errors before actual status output (fix #183787) (#183915) 2023-05-31 18:47:24 +09:00
Benjamin PaseroandGitHub 11cabc613a IssueReporterService should be lowercase (fix #183105) (#183182) 2023-05-24 18:05:18 -07:00
Benjamin PaseroandGitHub 487a08afe5 Investigate detecting slow network connections (#178553) (#182653) 2023-05-22 14:38:13 +02:00
Daniel Imms 9d1a210778 Support fish SI automatic injection
Fixes #139400
2023-05-19 15:45:28 -07:00
Connor PeetandGitHub 773af9641d remote: fix port forwarding not working (#182980)
fix: register a remote socket factory in the shared process

Surprised this didn't fail more verbosely...

Fixes #182749
2023-05-19 19:42:53 +02:00
Benjamin PaseroandGitHub b4a2a006a3 Allow to disable UNC access restrictions (fix #182055) (#182755) 2023-05-17 22:32:43 +09:00
Daniel ImmsandGitHub 45a70311ad Merge branch 'main' into tyriar/utility_ptyhost__2 2023-05-15 06:58:43 -07:00
29bf61673b Fix: Encode paths as URI components when opening a folder or workspace (#182398)
* Encode folder paths as URI components.

This should prevent issues when trying to open folder paths that contain
special characters like `+` or `&`.

* 💄

---------

Co-authored-by: Benjamin Pasero <benjamin.pasero@gmail.com>
2023-05-15 09:55:06 +02:00
Daniel Imms 7993982188 Create utility process pty host on Electron 2023-05-12 14:00:31 -07:00
Daniel Imms 1de9210c4f Merge remote-tracking branch 'origin/main' into tyriar/utility_ptyhost 2023-05-12 07:18:06 -07:00
Daniel Imms 260501799b Remove unused remote env var 2023-05-12 07:17:01 -07:00
Daniel Imms 761cd41e5e Clean up, fix compile 2023-05-12 07:13:49 -07:00
Daniel Imms a3c7981b61 Fix logging not showing up on first window 2023-05-12 07:07:45 -07:00
Benjamin PaseroandGitHub 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
Daniel Imms 7f4221a955 Merge remote-tracking branch 'origin/main' into tyriar/utility_ptyhost 2023-05-10 08:10:12 -07:00
Benjamin PaseroandGitHub 2e671b3a29 UNC follow up changes (#181946)
* settings include update

* more cleanup
2023-05-09 22:02:51 +02:00
d4632bb740 unc - adopt setting and handling of allow list (#181916)
* unc - adopt setting and handling of allow list (#5)

* unc - adopt setting and handling of allow list

* unc - set allow list on server too

* unc - pick our patched node.js for now

* bump electron

* unc - ignore sync is not needed with machine scope

* unc - use process set directly

* 🆙 22.5.1

* fix compile

---------

Co-authored-by: Benjamin Pasero <Benjamin.Pasero@microsoft.com>
2023-05-09 19:52:08 +02:00
Sandeep SomavarapuandGitHub 3b74e3f2bd detect remote loggers in the UI (#181399) 2023-05-03 14:44:06 +02:00
Connor PeetandGitHub cda21c19a7 cli: fix attach does not always work (#181273)
* fix: don't sync debug.lastExtensionDevelopmentWorkspace

* cli: fix attach does not always work

Seems like reading stdin when it's open but never written to blocks the process. Fix that, both by checking IS_INTERACTIVE_CLI before reading stdin, and by not passing stdin to the tunnel subprocess.

Fixes #179122
2023-05-01 14:58:25 -07:00
Tyler James LeonhardtandGitHub ef803dd06f align font size with other big blues (#181048)
Fixes https://github.com/microsoft/vscode/issues/180998
2023-04-28 09:20:54 +02:00
Tyler James LeonhardtandGitHub 326dc5a307 Fix Issue Reporter API (#180971)
* Fix Issue Reporter API

CancellationTokens aren't hydrated over ProxyChannels so I've removed cancellation logic.

Additionally, there was a bad string compare that needed toLower when checking if an extension has a handler.

Additionally, added docs.

Fixes https://github.com/microsoft/vscode/issues/180890
Fixes https://github.com/microsoft/vscode/issues/180920
Fixes https://github.com/microsoft/vscode/issues/180887

* remove import

* remove another import
2023-04-26 22:11:06 +02:00
Tyler James LeonhardtandGitHub 631a89350e No more raw IPC in the Issue Reporter (#180449)
This is the initial implementation of the issue reporter no longer having raw IPC calls in it.

I think there's plenty more to clean up, but this is a start...

cc @bpasero

cc @Tyriar if you wanna do this for the process explorer
2023-04-21 12:02:36 +10:00
Tyler James LeonhardtandGitHub b9e657dbf5 Organize Issue Services better (#180432)
The issue services were due for a clean up. They now have this shape:

* `platform/issue` has the `IssueMainService`, the service running on the Main process that Desktop takes advantage of
* `workbench/contrib/issue` has the contributions and the registered commands
* `workbench/services/issue` has the services that the renderer side can use to launch the issue reporter.

After this, I will work on getting out the raw IPC calls in the IssueMainService.
2023-04-20 11:45:16 -07:00
Tyler James LeonhardtandGitHub 208bbb0d78 Have issue reporter use service injection (#180373)
* Have issue reporter use service injection

The main part of this change is pulling out the IssueReporter class into its own file and then having the Main.ts file be all about initialization.

This will be easier to register remote services (to help get rid of all the raw IPC)

* add external for clarity
2023-04-19 20:05:37 -07:00
Tyler James LeonhardtandGitHub 0724039270 Initial IssueUriRequestHandler proposed API (#180363) 2023-04-19 23:18:44 +02:00
Benjamin PaseroandGitHub 6d5b85427d debt - remove unsupported max_old_space_size option (#180183) 2023-04-17 22:32:23 -07:00
Raymond ZhaoandGitHub a1694a8628 Bump windows-mutex (#179196) 2023-04-04 23:36:05 +02:00
e5f61433b5 chore: update to Electron 22 (#177600)
* Revert "chore: revert to Electron 19 (#175851)"

This reverts commit 3a11b47eee.

* chore: bump electron@22.3.3

* build: use custom version for V8 sandbox

* chore: update electron@22.4.1

* chore: enable forceAllocationsToV8Sandbox for extension host

* chore: bump electron@22.4.2

* chore: bump electron@22.4.3

* sandbox - cleanup from electron 22 update (#178919)

* Revert "chore: revert to Electron 19 (#175851)"

This reverts commit 3a11b47eee.

* chore: bump electron@22.3.3

* build: use custom version for V8 sandbox

* chore: update electron@22.4.1

* chore: enable forceAllocationsToV8Sandbox for extension host

* chore: bump electron@22.4.2

* chore: bump electron@22.4.3

* temp: update distro

* sandbox - cleanup from electron 22 update

* missing comile

* more changes

* fix build

* restore

* 💄

* compile

---------

Co-authored-by: deepak1556 <hop2deep@gmail.com>

---------

Co-authored-by: Benjamin Pasero <benjamin.pasero@microsoft.com>
2023-04-03 09:09:31 +02:00
Daniel Imms d600b2e196 Move pty host from shared to main proc 2023-03-31 11:21:14 -07:00
Benjamin PaseroandGitHub 4a21266bdd csp - tighten rules and update trusted types (#178675)
* csp - tighten rules and update trusted types

* bring back `https:` for `img-src`

* also update others
2023-03-31 12:17:41 +02:00
Daniel Imms a9fbd36e4f Start extracting pty host starter into interface
Part of #175335
2023-03-30 11:05:25 -07:00
Benjamin PaseroandGitHub 3edcfeb381 debt - fix some JS compile errors (#178472)
* debt - fix some JS compile errors

* simplify
2023-03-28 09:52:01 +02:00
Martin AeschlimannandGitHub adbc695833 cli: fix code tunnel on snap (#177482) 2023-03-20 22:27:33 +01:00
Connor PeetandGitHub c26e1a7a89 fix: code tunnel using program folder on windows (#177514)
Uses the common cwd() helper which pulls process.env.VSCODE_CWD

Fixes #175748
2023-03-17 13:14:55 -07:00
João Moreno 5f9bbf37c1 Revert "adopt new module locations (#177472)"
This reverts commit 5b6cd9c3c7.
2023-03-17 18:55:13 +01:00
5b6cd9c3c7 adopt new module locations (#177472)
Co-authored-by: Martin Aeschlimann <martinae@microsoft.com>
2023-03-17 15:34:17 +01:00
João MorenoandGitHub 5bb3880b20 remove telemetry prop: common.source (#176688)
* remove telemetry prop: common.source

* remove extra code

* use interface

* use interface again

* fix tests
2023-03-10 15:22:27 +01:00
Raymond ZhaoandGitHub 099b866cfb Fix status warn message (#176702) 2023-03-10 00:58:52 +01:00