Commit graph

72 commits

Author SHA1 Message Date
Alex Dima 36b9d931d7
Activate vscode.github-authentication from the test resolver 2023-06-03 15:19:04 +02:00
Alex Dima 5b2f96e69d
Add support for using the test resolver in the web 2023-06-03 13:26:51 +02:00
Benjamin Pasero 487a08afe5
Investigate detecting slow network connections (#178553) (#182653) 2023-05-22 14:38:13 +02:00
Connor Peet f76fd4f664
address pr comments 2023-05-11 12:29:42 -07:00
Connor Peet f5427eed53
remote: first cut at 'inline' remote resolvers
For web, it seems the most feasible direction for resolvers as we make
existing remote extensions 'web enabled' is to allow them to run in the
extension host. However, in no case will there just be a simple
websocket we can connect to ordinarily.

This PR implements a first cut at 'inline' resolvers where messaging is
done in the extension host. I have not yet tested them on web, where I
think some more wiring is needed to mirror desktop. Also, resolution of
URLs is not in yet. I think for this we'd want to do some service-worker
-based 'loopback' approach to run requests inline in the remote
connection, similar to what I did for tunnels...

Resolvers are not yet run in a dedicated extension host, but I think
that should happen, at least on web where resolvers
will always(?) be 'inline'.

Most of the actual changes are genericizing places where we specified
the "host" and "port" previously into an enum. Additionally, instead of
having a single ISocketFactory, there's now a collection of them, which
the extension host manager registers into when a managed resolution
happens.
2023-04-18 15:54:20 -07:00
Johannes 0656d21d11
auto-fixed prefer-const violation 2022-06-08 17:49:21 +02:00
Alex Dima 01ab50b929
Improve pause connection (#147318) 2022-04-22 13:38:28 +03:00
Martin Aeschlimann cc47c60e96
testresolver: set log level with TESTRESOLVER_LOG_LEVEL. For #146897 2022-04-08 10:41:36 +02:00
Robo b4b5c4d979
ci: fix published server arhive name on macOS (#145509) 2022-03-21 06:29:24 -07:00
Robo 32d40cf44e
chore: update to electron 17 (#143223)
* chore: bump electron@17.0.0

* Revert "chore: revert to electron@13 (#143851)"

This reverts commit df645f1450.

* chore: bump electron@17.1.0

* Revert "ci: fix build with latest node-gyp"

This reverts commit c3e948aa30.

* chore: revert ci changes for node v16

* chore: update yarn.lock

* chore: bump electron@17.1.1
2022-03-11 00:51:37 +09:00
Robo df645f1450
chore: revert to electron@13 (#143851)
* Revert "chore: update to electron 16 (#137241)"

This reverts commit 01df559c18.
This reverts commit 46301339b7

* ci: fix remote compiler for sdl-scan

* chore: fix remote/.yarnrc

* chore: fix build/npm/postinstall.js

* chore: rm crash reporter from shared process

* chore: rm crash reporter from ext host

* chore: fix build/lib/layersChecker.ts

* :chore: preserve some more changes

* fix tests

Co-authored-by: Benjamin Pasero <benjamin.pasero@microsoft.com>
2022-02-24 17:49:49 +01:00
Robo 01df559c18
chore: update to electron 16 (#137241)
* chore: bump electron@15.3.0

* chore: bump node@16.x

* chore: enable render process reuse

* Revert "watcher - use `type` property for crash reporter location"

This reverts commit bfa488dd8f.

* Revert "watcher - enable crash reports on linux (#136264)"

This reverts commit af261488f8.

* chore: enable crashpad on linux

* chore: bump electron@15.3.1

* chore: update api changes

* chore: bump @vscode/sqlite3@5.0.3

* spec: skip non-context aware module unittests

* chore: fix perf hook integration with node environment

* fix: adopt fs api changes

* chore: fix integration tests

* chore: bump electron@15.3.2

* chore: bump electron@16.0.0

* temp(macOS): kill test instances in OSS

* Revert "temp(macOS): kill test instances in OSS"

This reverts commit b0d796c8d64227a5ec012c060bbbee7d9da27568.

* chore: update chromium version for clang downloader

* some 💄 changes

* align with changes

* adopt more fs.rm

* 💄

* chore: bump @vscode/sqlite3@5.0.4

* fix layers check to account for duplicated types from node.js

* update todo for type casts

* smoke - fix compile issue

* chore: update module cache

* watcher - fix unhandled rejection (fix #137416)

* ci: update node version

* enable stack dumping

* update electron types to 16.x

* chore: bump @vscode/sqlite3@5.0.5

Refs https://github.com/microsoft/vscode/issues/137496

* fix layer issue

* add `AbortSignal` to core types

* chore: update linux compile flags

Refs 797723ec83

* ci: fix linux build

* ci: update github ci cache

* ci: fix remote build in github ci

* ci: better fix for remote build

* chore: bump azure cache

* chore: fix merge conflict

* :chore: update to electron@16.0.2

* chore: bump @vscode/sqlite3@5.0.7

* ci: update to gcc-4.9 for remote

Refs https://github.com/microsoft/vscode/issues/137659

* ci: switch to buster for linux arm

Refs https://github.com/microsoft/vscode/issues/137927

* ci: fix build on linux arm64

* ci: fix arm client compiler toolchain

Refs #137927

* chore: bump electron@16.0.3

* ci: fix compile flags for the c toolchain

* chore: bump electron@16.0.4

* Add experimental dark mode flag (#139109)

* Add experimental dark mode flag

* Apply PR feedback

* chore: bump electron@16.0.6

* chore: bump electron@16.0.7

Fixes https://github.com/microsoft/vscode/issues/138792
Fixes https://github.com/microsoft/vscode/issues/139300

* chore: experimental highlight API

* smoke - fix compile issue

* FIXME: custom ELECTRON_RUN_AS_NODE with node worker

* Revert "chore: bump electron@16.0.7"

This reverts commit 5fd01cf37c.

* Revert "Revert "chore: bump electron@16.0.7""

This reverts commit a7f1b73951.

* chore: fix github linux workflow

* chore: address review feedback

* chore: bump electron@16.0.8

* ci: revert to stretch distro for linux arm

Refs https://github.com/microsoft/vscode/issues/137927

* ci: force build

* chore: update yarn.lock

* address feedback

* Revert "FIXME: custom ELECTRON_RUN_AS_NODE with node worker"

This reverts commit 7b48fa3732.

* ci: fix remote folder build

* chore: fix github linux ci

* 🆙 `versionSpec`

Co-authored-by: Benjamin Pasero <benjamin.pasero@microsoft.com>
Co-authored-by: Raymond Zhao <raymondzhao@microsoft.com>
2022-02-08 20:09:00 +01:00
Johannes Rieken 4a130c40ed
enable @typescript-eslint/member-delimiter-style, https://github.com/microsoft/vscode/issues/140391 2022-02-02 14:35:33 +01:00
Martin Aeschlimann cc93826815
test resolver: prefer connection-token over connection-token-file 2022-01-21 17:42:35 +01:00
Martin Aeschlimann f9cac7c28a
adopt --server-data-dir 2022-01-21 12:11:47 +01:00
Benjamin Pasero 13461f8c61
Web: change yarn web to run with our server instead of playground (#139725)
* web - first cut `yarn web` via our server

* properly pipe output

* web - remove traces of web playground

* web - remember last opened workspace for convinience

* use vscode-test-web for server less, clean up web commands

* fix comment

* fix `yarn web`

* rename to code-server

* open system browser

* code-server script: use minimist

* test resolver: use ./scripts/code-server

* integartion tests: fix code-server command name

Co-authored-by: Martin Aeschlimann <martinae@microsoft.com>
2022-01-20 13:48:08 +01:00
Alex Ross c393048b98
Move tunnel features (#140620) 2022-01-13 12:13:40 +01:00
Martin Aeschlimann a6768373bf
fix test resolver 2022-01-12 00:08:17 +01:00
Martin Aeschlimann f4ba7dd12b
server bin cleanup 2022-01-11 16:34:28 +01:00
Martin Aeschlimann 31fe47284d
test resolver: create remoteDataDir 2022-01-10 16:47:29 +01:00
Martin Aeschlimann a0fd6c88eb
test resolver: adopt connection-token, polish 2022-01-10 16:20:04 +01:00
Martin Aeschlimann e9203eedf9
test resolver: adopt connection-token 2022-01-10 16:13:11 +01:00
Martin Aeschlimann 6249dab4fe
test resolver: adopt new server cli: For #137658 2022-01-10 14:38:13 +01:00
Rob Lourens ad57fde11d Add "current window" command to testresolver.
Seems like this is necessary to use the testresolver with normal extension debugging
2021-12-10 11:36:56 -08:00
Johannes Rieken d90dd1355b
Merge branch 'main' into joh/vscode-dts 2021-11-10 08:40:26 +01:00
Benjamin Pasero bef4dba21f
Parcel update and CI improvements (#136830)
* 🆙 product

* 🆙 parcel/watcher

* 🆙 parcel/watcher

* tests - separate remote logs from others

* store server logs too

* more tweaks

* fix name

* error when 10s passed
2021-11-10 08:13:56 +01:00
Johannes Rieken 68e819043c
use tsconfig.json#include for vscode.d.ts and vscode.proposed.d.ts, enables to remove most ref.d.ts-files 2021-11-09 15:53:35 +01:00
Johannes Rieken 9254a8cd27
move vscode.d.ts and vscode.proposed.d.ts into src/vscode-dts-folder, https://github.com/microsoft/vscode/issues/131165 2021-11-09 15:00:03 +01:00
Martin Aeschlimann a946f9e643
fix for #134873 2021-10-15 23:57:54 +02:00
Benjamin Pasero 3cda269c80 ESlint: enable no-async-promise-executor (#134873) 2021-10-12 10:50:44 +02:00
Alexandru Dima d02ba46704
undo bad change 2021-09-24 16:21:50 +02:00
Alexandru Dima be33a77d8c
Use onDynamic* instead of onScoped* for events that are returned from method calls (#133445) 2021-09-24 16:16:28 +02:00
Alex Ross a15378a9db
Allow tunnel providers to define port privacy options (#133677) 2021-09-23 16:24:51 +02:00
Alex Ross a414bf2973
Add protocol to tunnel API
Part of #124816
2021-06-17 16:13:54 +02:00
Martin Aeschlimann 99f4201e20
test resolver: simplify pause/unpause 2021-06-16 17:47:56 +02:00
Martin Aeschlimann 741beb8f26
TestResolver, use 127.0.0.1, not localhost 2021-05-25 16:30:57 +02:00
Alex Dima 85f518b255
Add RemoteAuthorityResolver.getCanonicalURI 2021-05-21 16:48:14 +02:00
Alexandru Dima 30ae7bde85
Respect resolver's trust options 2021-04-16 17:15:09 +02:00
Martin Aeschlimann b8a320867e
allow null for remoteAuthority in IBaseOpenWindowsOptions to force local window 2021-03-09 16:05:48 +01:00
Sandeep Somavarapu 0ecd7f72d8 add remote server cli test 2021-02-04 10:08:29 +01:00
Martin Aeschlimann 4bd2d367e7 Remote smoketest timeout (fixes #115159) 2021-01-27 15:52:25 +01:00
Martin Aeschlimann 5809e9eb03 testresolver: support server extensions 2021-01-22 15:49:14 +01:00
Alex Ross e5dd4b6e4b Add mock support for public ports to test resolver 2021-01-22 12:09:26 +01:00
Alex Ross 3ec9067200 Simplify local port logic in test resolver + OS check 2021-01-21 16:53:57 +01:00
Alex Ross e8f6c27381 Use random port if privileged in test resolver 2021-01-21 16:36:30 +01:00
Alex Ross fcccc85ff9 Add more to test resolver tunnel factory and fix port filtering 2021-01-21 16:23:55 +01:00
Alex Ross d8831220ff Update showCandidatePort for test resolver 2021-01-21 15:06:55 +01:00
Martin Aeschlimann b5f36a24b6 testresolver: start a test server 2021-01-21 14:04:08 +01:00
Martin Aeschlimann 0249c31a59 testResolve: more tunnelservice fixes 2021-01-21 12:14:35 +01:00
Martin Aeschlimann 67bf6577b4 testResolver: fix for tunnel server 2021-01-21 12:09:24 +01:00