Commit Graph

549 Commits

Author SHA1 Message Date
Sandeep Somavarapu 33b821bab2 fix #175396 (#175631) 2023-02-28 00:58:27 -08:00
Sandeep Somavarapu 52dd56689f Improvements to logger and netwok requests logging (#175492)
- Able to create logger by passing id
- Support when conditions for loggers
- Separate logger for all network requests
- Log request and response headers
- Enable request logger on trace
- Add loggerService in CLI
2023-02-27 10:05:20 +01:00
Benjamin Pasero 9bbce647b3 debt - strict layer rules for more services (#175411) 2023-02-25 15:49:47 +01:00
Benjamin Pasero c3100304dd Reduce layer breakers in shared process (#175333)
* move `sharedProcessLifecycleService`

* move `remoteTunnelService`

* move `ExtensionsProfileScannerService`

* move `RequestService`

* move extension recommendations

* move native host service

* move `UserDataAutoSyncService`

* move `ExtensionTipsService`

* move `IMainProcessService`

* move `UserDataProfileStorageService`

* more moves

* move main process service
2023-02-24 16:02:20 +01:00
Benjamin Pasero b83565b135 Improve network requests logging (#175258) (#175325) 2023-02-24 15:58:31 +01:00
Benjamin Pasero ed6bb0790b sandbox - enable utility process in insiders by default (#175326) 2023-02-24 15:41:33 +01:00
Sandeep Somavarapu 2b54ca810f use vscode-userdata scheme for user data (#175212) 2023-02-23 09:22:51 +01:00
Benjamin Pasero 0ef4b66766 partially revert move of node files (#174815) 2023-02-20 18:09:48 +11:00
Benjamin Pasero 31edbf7ca6 sandbox - move shared process to node layer (#174581) 2023-02-17 10:18:01 +01:00
Sandeep Somavarapu 11fcbd051a prepare for server profiles (#174232)
* prepare for server profiles
- make state service available in server
- Intrdouce save stragey in state service - state shall be saved immediately in server
- use UserDataProfilesService that can save profiles in server

* feedback

* - add tests
- register IStateReadService in main
2023-02-14 08:58:44 +01:00
Sandeep Somavarapu 5936a4eb52 Enable profiles by default except web+remote (#171812)
#116740 Enable profiles by default except web+remote
2023-01-20 12:07:30 +01:00
Sandeep Somavarapu a3b2f85ba4 CLI: bail out when profile does not exist (#171646) 2023-01-18 09:57:43 -08: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
Sandeep Somavarapu 05d59b893e Log: Enhancements and cleaup (#171325)
- Make logger service primary source for log level
- Automatically register output channels for loggers from anywhere
- Use logger channels on remote processes (server, pty)
- clean up loggers and log service
2023-01-14 19:46:46 +01:00
Sandeep Somavarapu 5167c393aa proper fix for #165447 (#169883)
- use extensions location to get relative path
2022-12-23 10:47:34 +01:00
Connor Peet c87fa19f79 cli: avoid interactions when running integrated (#167780)
Fixes https://github.com/microsoft/vscode/issues/167760

The VS Code CLI gets run from a bash/shell script. This prevents interactions--in the former case, it doesn't look like a tty, and in the latter case batch scripts don't seem to support having interactive subprocesses.

This PR avoids interactions if stdin is not a tty, prompting the user to use the flag instead. Use of the flag is also persisted like an interactive agreement prompt.
2022-11-30 23:15:08 +00:00
Logan Ramos a3bde69a35 Allow machne id generation in main process (#167449) 2022-11-28 13:25:19 -08:00
Benjamin Pasero d5e5981ac7 debt - use ITelemetryAppender interface (#167067)
//cc @lramos15
2022-11-23 08:01:54 -08:00
Connor Peet 94ee5f5861 cli: automatically use distro qualities if available (#166961)
A fully-functioning CLI with tunnel capabilities requires product-specific
configuration that is not included in the OSS. This change has the CLI's build
script automatically look for a peer `vscode-distro` folder and, in a debug
build, set its build variables based on that.

It also works to set correct variables if vscode-distro is not found, based on
the OSS product.json (though this is not sufficient to run a fully fledged
tunnel.)
2022-11-22 06:13:16 -08:00
Martin Aeschlimann 0131be02f4 add editorWebUrl to tunnelApplicationConfig (#166872)
* add editorWebUrl to tunnelApplicationConfig

* bump distro & compile 'build'
2022-11-21 09:37:26 -08:00
João Moreno aa461e19a6 add trace logging to NativePolicyService (#166462)
related to #163418
2022-11-16 06:19:57 -08:00
Alex Dima 192c67db71 Always use app root for resource URIs (avoid usage of require) 2022-11-08 17:24:24 +01:00
Sandeep Somavarapu e9db45a0de Fix #164690 #164730 (#165331)
* Revert "Revert "Fix #164690 #164730 (#165279)" (#165302)"

This reverts commit d9ed6d1ef4.

* store migration completion marker in profile
2022-11-03 12:02:53 +01:00
Megan Rogge d9ed6d1ef4 Revert "Fix #164690 #164730 (#165279)" (#165302) 2022-11-02 17:48:32 -07:00
Sandeep Somavarapu 9c0c68c8cf Fix #164690 #164730 (#165279)
- Maintain default installed extensions manifest always
- Adopt to default installed extensions manifest
- Add externally installed extension to default extensions manifest
2022-11-02 22:48:15 +01:00
Connor Peet 578d59eb72 cli: fix code tunnel on macos 2022-10-24 10:55:22 -07:00
Martin Aeschlimann f10e84118b ci: use tunnelApplicationName (#164257)
fix location of tunnel command in CI and in code
2022-10-23 20:12:23 +03:00
Martin Aeschlimann 929c645c9a more tunnel access commands (#164076)
more remote tunnel access commands
2022-10-20 09:37:17 +02:00
Martin Aeschlimann 2bfe9bcd6f Allow to configure machine name for tunnel (#163812)
* Allow to configure machine name for tunnel

* fix tests

* fix tests
2022-10-18 08:36:11 -07:00
Sandeep Somavarapu 845f524e35 Merge pull request #162285 from dtivel/dtivel/verify-packages
Add extension signature verification service
2022-10-18 14:14:05 +02:00
Martin Aeschlimann 17c7a08962 Add cli & command to run the code server on the desktop (#163546)
Add cli & command to run the code server on the desktop
2022-10-13 15:02:42 +02:00
Sandeep Somavarapu 66c63cc8f7 review feedback 2022-10-11 15:32:22 +02:00
Damon Tivel 387563c02b Add extension signature verification service 2022-10-03 08:20:27 -07:00
Benjamin Pasero 9db57e76e9 Build: bundle / concat entry points (#161161)
* perf - concatenate windows main files

* Revert "Revert "Use `esbuild` to bundle some CommonJS main files (#160957)" (#161118)"

This reverts commit 84c46b71a5.

* build - exclude server main files

* build - make concat a task that runs like the others

* some renames

* Avoid overwriting the nodejs closure require

* Revert "build - exclude server main files"

This reverts commit 736516624e.

Co-authored-by: Alex Dima <alexdima@microsoft.com>
2022-09-21 00:38:44 -07:00
Benjamin Pasero 099445be72 debt - avoid statSync when computing workspace identifier 2022-09-11 10:04:33 +02:00
Benjamin Pasero f54c23777c backups - 💄 (#160478) 2022-09-09 10:15:51 +02:00
Sandeep Somavarapu 39f3ab5b53 Fix #159447 (#160310) 2022-09-07 07:43:07 -07:00
Benjamin Pasero d3a33a2716 services - set more lazy in main process (#160273) 2022-09-07 11:29:41 +02:00
Sandeep Somavarapu ba6d0bd1d9 adopt lazy services (#160168)
#159178
- make services lazy
- adopt to eager instantiation with comment
2022-09-06 14:06:03 +02:00
Sandeep Somavarapu 4bf364de22 enable profiles (#158758)
- by default in insiders
- behind the flag in stable
2022-08-22 15:46:41 +02:00
Z. Grace Moreau d553d152a3 followup to renaming fish script, redux
See 90a258a & 2a81960.
2022-08-09 11:01:11 -06:00
Z. Grace Moreau 95ef9dd07e add --locate-shell-integration-path CLI support 2022-08-05 11:06:36 -06:00
Benjamin Pasero f8ae10c8d0 Piping into Code fails if data writes delayed (fix #155341) (#156973) 2022-08-03 09:41:12 +02:00
Logan Ramos cc098faebd Allow msftInternal to be setting toggled (#156198) 2022-07-25 21:01:27 -04:00
Daniel Imms ac4d678fb9 Support --locate-shell-integration-path in server CLI (#155870)
* Fix shell-integration remote cli

* Don't silently fail based on TERM_PROGRAM

We want this to work even in terminals where TERM_PROGRAM may not exist, such
as in a regular ssh session. The manual install recommends using an if before
sourcing anyway.

* Handle shell integration option on server cli

* Move shell integration option handling higher
2022-07-25 08:39:27 -07:00
Daniel Imms ee636283a9 shell-integration -> locate-shell-integration-path
Part of #153921
2022-07-19 06:18:59 -07:00
Daniel Imms 1baeb71f07 Use TERM_PROGRAM conditional to activate 2022-07-13 07:32:24 -07:00
Daniel Imms 6763f2a996 Use common path instead of node path 2022-07-13 03:24:23 -07:00
Daniel Imms f3399f6679 Support bash and zsh paths too 2022-07-13 03:22:17 -07:00
Daniel Imms e0e5339bf7 Shell integration CLI progress 2022-07-12 12:56:42 -07:00