Skip to content

Improve pty host diagnostics and introduce hidden simulated latency settings - #185243

Merged
Daniel Imms (Tyriar) merged 5 commits into
mainfrom
tyriar/ptyhost_trace
Jun 15, 2023
Merged

Daniel Imms (Tyriar) merged 5 commits into
mainfrom
tyriar/ptyhost_trace

Conversation

@Tyriar

Copy link
Copy Markdown
Contributor

This standardizes the trace logging in the pty host so it's super easy to add the log via the @traceRpc decorator, this is now used in all public methods on PtyService. It also logs the request function name, args and the response function name and return result:

image

There are also 2 hidden settings introduced which will allow us to simulate a slower machine and network:

  "terminal.integrated.developer.ptyHost.latency": 200,
  "terminal.integrated.developer.ptyHost.startupDelay": 2000,

These are warned on startup:

image

The 2 TODOs will be resolved in later PRs

Part of #130320
Part of #133542

@lorand-horvath

Copy link
Copy Markdown

Daniel Imms (@Tyriar) Now that's some real nice work you've done here, very interesting for debugging purposes.

@github-actions github-actions Bot locked and limited conversation to collaborators Jul 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants