Commit Graph

109 Commits

Author SHA1 Message Date
Sandeep Somavarapu e4c04ea2e9 - Introduce policy model with file policy
- Introduce policy configuration using policy model
- Use policy configuration while reading, inspecting and writing configuration
- Adopt json settings editor
2022-05-10 13:49:31 +02:00
Alexandru Dima 843724eb13 Add owner and comment to telemetry events (#149097) 2022-05-09 08:31:14 -07:00
Martin Aeschlimann 917811295b Merge branch 'main' into aeschli/commitInRemoteResourceRoute 2022-05-05 15:56:22 +02:00
Martin Aeschlimann 41f49066bd fix getRemoteServerRootPath reference 2022-05-05 15:56:03 +02:00
Martin Aeschlimann 5f2559c6d1 remove console.log, simplify 2022-05-04 15:34:53 +02:00
Martin Aeschlimann 177b4e19f3 server root path for websocket connection 2022-05-04 15:22:32 +02:00
Martin Aeschlimann a0330948fe commit in remote resource route 2022-05-03 21:47:08 +02:00
Martin Aeschlimann 864c20e550 Use ETag caching when running from source. Fixes #148642 2022-05-03 20:50:01 +02:00
Martin Aeschlimann aea2baad52 Inline CHARCODE_SLASH 2022-05-03 12:15:49 +02:00
Martin Aeschlimann ee8c045bf5 add caching 2022-05-02 21:55:12 +02:00
Martin Aeschlimann d364f56ac7 fix comment 2022-05-02 16:12:47 +02:00
Martin Aeschlimann fda5b84d5d commit in route 2022-05-02 16:12:28 +02: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
Martin Aeschlimann b8da1be55c web client server: support x-original-host 2022-04-28 16:26:04 +02:00
Johannes 310108c376 fix https://github.com/microsoft/vscode/issues/144555 2022-04-25 09:40:57 +02:00
Logan Ramos 9be47ee6ab Update server telemetry 2022-04-19 10:32:32 -04:00
Benjamin Pasero ec71e5c3e2 more sandboxed usages in ext host starter (#147666) 2022-04-19 10:31:03 +02:00
Sandeep Somavarapu 5669b27cac Fix #147103 2022-04-11 11:25:48 +05:30
Connor Peet 0de44f9786 variables: allow resolving extensionDir (#146274)
* variables: allow resolving `extensionDir`

This allows us to fix https://github.com/microsoft/vscode-remote-release/issues/5516#issuecomment-911597917

It enables a new replacement in the format `${extensionDir:<id>}` which
will expand to the filesystem path where the extension is stored. This
involved churn, since now resolution is always synchronous (where before
the terminal took a synchronous-only path.)

Additionally, changes were needed to inject this information in the
variable resolver. As part of this I made the extension host resolver
(used by debug and tasks) its own extension host service.

* fixup! preserve object key order in resolution, add extensionDir support

* fixup! address pr comments

* fixup! address pr comments

* fixup! address pr comments

* config: fix config replacement only working for first variable per line

* fixup! fix unit tests
2022-04-07 08:06:31 -07:00
Alex Dima 30880c2def Merge remote-tracking branch 'origin/main' into sandy081/alignExtensionsScanning 2022-04-06 11:48:24 +02:00
Benjamin Pasero 18377e6ee2 smoke - allow to enable verbose vscode logs and enable for now 2022-04-06 10:41:22 +02:00
Sandeep Somavarapu 2df55d8428 - Move caching into ExtensionsScannerService
- Enable caching in desktop and server extensions scanning
2022-04-06 01:57:38 +05:30
Sandeep Somavarapu a6180a732e Show localized manifest for installed extensions in UI:
- move translations into extensions scanner service
2022-04-05 12:09:13 +05:30
Sandeep Somavarapu da32d130a1 use correct language 2022-04-05 09:36:27 +05:30
Sandeep Somavarapu 9fe18d2e6b fix layering 2022-04-01 23:12:19 +05:30
Sandeep Somavarapu a51801b465 align extension scanning
- Extract extension scanning, validating and nls replacement into `INativeExtensionsScannerService`
- Use `INativeExtensionsScannerService` for scanning in Desktop and Remote extension managements and extension hosts
- Represent invalid extensions in Extensions UI
- Remove prompting for invalid extensions while scanning in Desktop Extension Host in Dev mode
2022-04-01 11:02:02 +05:30
Joao Moreno a3e739fee9 update cdn domain for webview 2022-03-30 10:55:12 +02:00
Alex Dima 48b6c6a5ff Fix escaping of - 2022-03-29 22:51:44 +02:00
Alex Dima 4339c5f0e3 Remove unnecessary escape 2022-03-29 22:48:23 +02:00
Alex Dima 79e83ab7fa Go back to using buitlin URL
This reverts commit 014814146e.
2022-03-25 09:25:49 +01:00
Alex Dima 014814146e Avoid using buitlin URL because it is flagged by the layers checker 2022-03-24 22:23:26 +01:00
Alex Dima 448ada0233 Fixes #144513: Allow cross origin requests for vscode resources from the web worker extension host origin 2022-03-24 21:47:58 +01:00
Alex Dima 3337709fca Fixes microsoft/vscode-remote-release#6481: Avoid entering an asynchronous endless loop while handling uncaught exceptions 2022-03-24 11:23:27 +01:00
Alex Dima dad3317e93 Make ILog compatible with ILogService 2022-03-24 00:03:42 +01:00
Martin Aeschlimann 17a01f19ab Improve description for default-folder/workspace. For #143580 2022-03-23 17:41:38 +01:00
Alex Dima 344a1defd8 Use IFileService in ExtensionScanner 2022-03-22 14:17:55 +01:00
Alex Dima f903e88a3f Merge remote-tracking branch 'origin/main' into alex/issue-143645 2022-03-21 16:16:13 +01:00
Alex Dima d61e2520e0 When the remote extension host disconnects, ask the server if it actually just crashed (using the management connection) 2022-03-21 16:13:51 +01:00
Tyler Leonhardt 4e1c18d113 Ensure we prompt on Desktop when keytar doesn't load. Fixes #145282 2022-03-18 13:45:17 -07:00
Daniel Imms 4e3e27650b shellEnv platform/terminal -> platform/shell
Fixes #145405
2022-03-18 09:10:45 -07:00
Alex Dima fc0bac73a1 Load vsda on startup to get an early error (microsoft/vscode-remote-release#6300) 2022-03-17 21:45:27 +01:00
Alex Dima 72169d1bfb Add logging for errors occuring when loading vsda (microsoft/vscode-remote-release#6300) 2022-03-17 16:47:59 +01:00
Sandeep Somavarapu e767f79f1f consider outdated targetplatform while loading extensions 2022-03-17 12:20:13 +05:30
Martin Aeschlimann e971acd737 Code server provide a way to open a default-folder or default-workspace. Fixes #143580 2022-03-15 17:31:58 +01:00
Benjamin Pasero 3eae27e2c1 Merge branch 'main' into ben/history 2022-03-12 11:13:46 +01:00
SteVen Batten 0e95041cc5 Add workspace trust to the web (disabled by default) and server distro (enabled by default) (#144852)
* server trust

* change to opt in model for trust in embedder api

* add fallback host label
2022-03-11 07:46:16 -08:00
Benjamin Pasero 6670b3fa46 history - make sure local history home folder exists on disk 2022-03-09 10:47:18 +01:00
Benjamin Pasero 2dc2290ba9 history - introduce a localHistoryHome environment 2022-03-09 10:15:49 +01:00
Alex Dima e61c171778 Improve embedding the web worker iframe 2022-03-08 19:13:39 +01:00
Daniel Imms 27da25e70f Start refactors to bring shell integration into pty host
Part of #143965
2022-02-28 12:59:50 -08:00