Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Long running getPasteEdits call #60805

Open
mjbvz opened this issue Dec 18, 2024 · 0 comments
Open

Long running getPasteEdits call #60805

mjbvz opened this issue Dec 18, 2024 · 0 comments

Comments

@mjbvz
Copy link
Contributor

mjbvz commented Dec 18, 2024

πŸ”Ž Search Terms

  • getPasteEdits
  • Update imports on paste

πŸ•— Version & Regression Information

5.7x, not a regression

⏯ Playground Link

No response

πŸ’» Code

Bug

From microsoft/vscode#235959, I got a log showing a getPasteEdits taking almost 2 seconds. I don't have a repo yet but here are the relevant parts of the logs:

PASTE REQUEST MADE
...
Info 11464[23:06:13.935] Starting updateGraphWorker: Project: <REDACTED>
Info 11465[23:06:14.203] Finishing updateGraphWorker: Project: <REDACTED> projectStateVersion: 3 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed: 267.6692490000023ms
Info 11466[23:06:14.203] Different program with same set of files
Info 11467[23:06:14.204] Starting updateGraphWorker: Project: <REDACTED>
Info 11468[23:06:14.447] Finishing updateGraphWorker: Project: <REDACTED> projectStateVersion: 4 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed: 243.40444700000444ms
Info 11469[23:06:14.447] Different program with same set of files
Info 11470[23:06:15.176] getExportInfoMap: cache miss or empty; calculating new results
Info 11471[23:06:15.673] getExportInfoMap: done in 496.9983559999964 ms
Info 11472[23:06:15.704] getExportInfoMap: cache hit
Info 11473[23:06:15.733] getExportInfoMap: cache hit
Perf 11474[23:06:15.760] 35::getPasteEdits: elapsed time (in milliseconds) 1825.7962
Info 11475[23:06:15.760] response:
    {"seq":0,"type":"response","command":"getPasteEdits","request_seq":35,"success":true,"performanceData":{"updateGraphDurationMs":511.07369600000675}, ...

The user was pasting jsx. The pasted text includes a number of symbols but the text isn't overly log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant