Commit Graph
44 Commits
Author SHA1 Message Date
Daniel Imms ec2ef287fc Align check for env var collection on remote
Checked all causes before applyToProcessEnvironment was used.

Fixes #197187
2024-02-29 10:02:30 -08:00
Matt BiernerandGitHub ab5dd705b0 Add promiseWithResolvers shim (#203826)
Adds a shim for `Promise.withResolvers`. This is slightly reduces lines of code. More importantly it plays more nicely with TypeScript's type checking and lets us mark more vars const and properties readonly
2024-01-30 11:58:55 -07:00
Matt BiernerandGitHub 6e251255fb withNullAsUndefined(x) -> x ?? undefined (#189987)
Follow up on #189983

Replaces `withNullAsUndefined` with uses of `??`
2023-08-08 16:45:52 -07:00
Daniel Imms f639cabe2d Log latency stats and remove old unused latency mechanism
Fixes #187274
2023-07-07 08:33:46 -07:00
Daniel Imms a50fca3193 Clarify it's talking about the type never 2023-07-06 12:45:12 -07:00
Daniel Imms d630142d45 Add AcceptDetachInstanceReply impl and add ts assert for future 2023-07-06 12:24:18 -07:00
Daniel Imms ab08a18321 Use const enum for all remote terminal requests
Part of #187176
2023-07-06 12:12:56 -07:00
Daniel Imms 074121ee30 Remove now unneeded optional checks 2023-07-06 11:42:22 -07:00
Daniel Imms ed59e75f3d Add IPtyHostService
This is a new service which extends IPtyService and provides additional methods
on the process that manages the connection to the pty host:

- IPtyService: Talk to the pty host, this may be direct via a message port of via
  the main/server procs.
- IPtyHostService: Talk to the pty host management interfaces on the main/server
  procs. These are no longer available as optional methods on IPtyService to be
  clear about where they happen (eg. getProfiles).

Fixes #186935
2023-07-06 11:35:45 -07:00
Daniel Imms c83ef08dca Merge remote-tracking branch 'origin/main' into tyriar/terminalLogService 2023-06-22 05:36:15 -07:00
Daniel Imms 634401733b Track perf marks on pty hosts
Part of #185393
2023-06-21 05:36:03 -07:00
Daniel Imms fea4ff2130 Move all renderer-side terminal logs to ITerminalLogService 2023-06-17 05:12:51 -07:00
Daniel Imms 03af550d7c Apply terminal clear command in serializer
Fixes #157907
2023-05-28 09:13:13 -07:00
Kartik Raj a7a94249c2 Allow to provide description to environment collection 2023-04-20 22:06:08 +00:00
Kartik Raj 54965bba9d Revert "Attempt to use correct workspace for remote terminals"
This reverts commit 9e4fa31a4a.
2023-04-20 21:44:34 +00:00
Kartik Raj 9e4fa31a4a Attempt to use correct workspace for remote terminals 2023-04-20 21:30:54 +00:00
Kartik Raj 39da37592d Attempt to fix smoke tests
This reverts commit be89fd23d0.
2023-04-20 20:49:53 +00:00
Kartik Raj be89fd23d0 Fix for remote terminals 2023-04-20 17:51:13 +00:00
First 0dc2f48672 Undo using cwd for remote terminal 2023-04-19 16:25:34 -07:00
Kartik Raj b9ec13d3d2 Revert "Serialize and deserialize description" 2023-04-16 08:44:18 +00:00
Kartik Raj 1fc1fb1f90 Serialize and deserialize description 2023-04-15 23:22:58 +00:00
First 3b0ac4bbd0 Revert unncessary changes 2023-04-14 04:43:01 -07:00
Kartik Raj 03de27d94c Pass workspace folder via apply method instead 2023-04-14 07:18:58 +00:00
Kartik Raj aa8c153149 Fix compile errors 2023-04-11 23:48:02 +00:00
Kartik Raj 69b6e83f8d Pass it in other places 2023-04-11 23:48:02 +00:00
Daniel Imms 55af044b69 Move merged environment interfaces and serialize funcs to platform 2023-01-11 06:15:07 -08:00
Daniel Imms 275d1163c2 Support /mnt/ wsl links in Windows backends
Part of #148062
2022-12-19 16:39:03 -08:00
Benjamin PaseroandGitHub 3d58b4623b Allow to configure shell resolution time (#169237)
* Allow to configure shell resolution time

* use `clamp`
2022-12-15 06:14:54 -08:00
Megan RoggeandGitHub 19f4680c26 simplify process kill (#162833)
fix #162344
2022-10-06 07:01:23 -07:00
Megan RoggeandGitHub de450f991c add basic contextual commands (#160952) 2022-09-22 15:30:47 -07:00
Megan RoggeandGitHub 212af8702d get task reconnection to work in remote envs (#159316)
* fix #159215

* remove unneeded change
2022-08-29 14:59:20 -07:00
Daniel Imms 677b083284 Ensure remote backend command requests are only executed once
Fixes #121926
2022-08-19 14:51:17 -07:00
Daniel ImmsandGitHub 575c29b9de Merge branch 'main' into term 2022-07-06 05:10:58 -07:00
Alex Dima b6afe5e0f1 Configure if the regular console should also be used via IExtensionHostInitData 2022-06-23 17:25:47 +02:00
Stephen Sigwart 7aa326e2d7 Get info from terminal editor
- The issue is `_onWillShutdown` is called before `TerminalInputSerializer` serializes, so I added `shutdownPersistentProcessId`.
- When restoring the editor, it was using the wrong ID, so I added `getRevivedPtyNewId`.
2022-06-18 15:26:59 -04:00
Connor PeetandGitHub 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
Daniel Imms 27da25e70f Start refactors to bring shell integration into pty host
Part of #143965
2022-02-28 12:59:50 -08:00
Alexandru DimaandGitHub 887415bba1 Revert "Revert "remote-cli not being added to PATH with "terminal.integrated.inheritEnv": false"" 2022-02-16 15:36:07 +01:00
Alexandru DimaandGitHub bcc58db3b8 Revert "remote-cli not being added to PATH with "terminal.integrated.inheritEnv": false" 2022-02-16 15:33:54 +01:00
Martin Aeschlimann f74e7a8d5d remote-cli not being added to PATH with "terminal.integrated.inheritEnv": false. For /microsoft/vscode-remote-release#6289 2022-02-10 16:36:45 +01:00
Bruce HopkinsandGitHub 1a17c0f2ef Add user home variable (#141902) 2022-02-07 16:21:39 +01:00
Alex Dima ed54b04b4f Simplify uri transformer creation 2022-02-04 16:22:18 +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
Alex Dima 3269deea2b Move server code to vs/server/node 2022-01-20 17:18:10 +01:00