Skip to content

Starts to lag after editor-widget with large content pops up #23453

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

Closed
mjbvz opened this issue Apr 16, 2018 · 5 comments
Closed

Starts to lag after editor-widget with large content pops up #23453

mjbvz opened this issue Apr 16, 2018 · 5 comments
Labels
Duplicate An existing issue was already created

Comments

@mjbvz
Copy link
Contributor

mjbvz commented Apr 16, 2018

From @emiljohansson on April 15, 2018 14:19

  • VSCode Version: 1.22.2
  • OS Version: macOS Sierra 10.12.6

Steps to Reproduce:

  1. I am using JSS (9.0.0) in the screenshot example.
  2. When adding a comma at the end of the line, within the createStyleSheet call, an element with the class name editor-widget pops up. The content of the box is 10001 characters long. It seems to be cut of after that, ending with "revert" | "unset…. Let me know if you want me to paste the content.

In the screenshot, the cursor start to lag when I navigate back and forth. Same when I navigate between editors.

Does this issue occur when all extensions are disabled?: Yes

kapture 2018-04-15 at 8 15 46

Copied from original issue: microsoft/vscode#47909

@mjbvz mjbvz self-assigned this Apr 16, 2018
@mjbvz
Copy link
Contributor Author

mjbvz commented Apr 16, 2018

From @emiljohansson on April 15, 2018 18:15

I wanted to add that if I close the widget, the lag remains going between editors, but the cursor lag seems to go away.

I also tested setting the end variable to 500 and that removed the lag: https://github.com/Microsoft/vscode/blob/master/src/vs/editor/contrib/parameterHints/parameterHintsWidget.ts#L394

@mjbvz
Copy link
Contributor Author

mjbvz commented Apr 16, 2018

Here's the code I tested this with:

import  jss from 'jss'

jss.createStyleSheet({
    base: {
        background: 'blue',
    }
})

Moving over the ts because the signature help requests themselves here seem to be taking a long time:

Rsponse received: signatureHelp (324). Request took 395 ms. Success: true 

Each one is between 350 and 500ms

@mhegazy mhegazy added the Bug A bug in TypeScript label Apr 16, 2018
@mhegazy mhegazy added this to the TypeScript 2.9 milestone Apr 16, 2018
@mhegazy mhegazy added the Needs Investigation This issue needs a team member to investigate its status. label Apr 16, 2018
@mhegazy
Copy link
Contributor

mhegazy commented Apr 16, 2018

Looks like we are spending most of the time serializing the union type..

@mhegazy
Copy link
Contributor

mhegazy commented Apr 26, 2018

looks like a duplicate of #23458. should be addressed by #23543

@mhegazy mhegazy added Duplicate An existing issue was already created and removed Bug A bug in TypeScript Needs Investigation This issue needs a team member to investigate its status. labels Apr 26, 2018
@mhegazy mhegazy removed this from the TypeScript 2.9 milestone Apr 26, 2018
@typescript-bot
Copy link
Collaborator

Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed.

@microsoft microsoft locked and limited conversation to collaborators Jul 31, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

4 participants