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

getApplicableRefactors taking a long time #17133

Closed
ghost opened this issue Jul 12, 2017 · 4 comments
Closed

getApplicableRefactors taking a long time #17133

ghost opened this issue Jul 12, 2017 · 4 comments
Assignees
Labels
Bug A bug in TypeScript High Priority

Comments

@ghost
Copy link

ghost commented Jul 12, 2017

The log from microsoft/vscode#30449 (comment) shows that getApplicableRefactors can take a long time after a small change has been made to one file. The tsserver log doesn't tell us much about what is taking the time -- we could add deeper logging to help investigate.
CC @RyanCavanaugh

@billti
Copy link
Member

billti commented Aug 1, 2017

What's the latest with this? Does VS Code need this fix so they can reenable the refactorings they had to disable via the 1.14.1 recovery build? cc @mjbvz

@ghost
Copy link
Author

ghost commented Aug 1, 2017

It's still not certain that getApplicableRefactors was actually to blame; something else might have been going on. It would be nice to have functionality to turn that on and off so users could test if that was causing the problem for them.
Linking #17269 since that might be related to apparent performance problems too.

@DanielRosenwasser DanielRosenwasser added the Needs Investigation This issue needs a team member to investigate its status. label Aug 1, 2017
@DanielRosenwasser DanielRosenwasser added this to the TypeScript 2.5 milestone Aug 1, 2017
@DanielRosenwasser DanielRosenwasser assigned mjbvz and ghost Aug 1, 2017
@mjbvz
Copy link
Contributor

mjbvz commented Aug 1, 2017

We re-enabled the refactorings in VS Codes insiders builds and have not seen any further CPU usage issues reported. If there is still any concern about this feature in TS 2.4, we could always gate it to ts 2.5 on the VSCode side

@DanielRosenwasser DanielRosenwasser added Bug A bug in TypeScript High Priority labels Aug 3, 2017
@DanielRosenwasser DanielRosenwasser modified the milestones: TypeScript 2.5.1, TypeScript 2.5 Aug 15, 2017
@mhegazy
Copy link
Contributor

mhegazy commented Aug 17, 2017

Discussing this offline today with @andy-ms and @mjbvz, we do not believe this is related to refactoring. closing for now, please open a new issue if there are perf degradation and we will investigate.

@mhegazy mhegazy closed this as completed Aug 17, 2017
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
@RyanCavanaugh RyanCavanaugh removed Needs Investigation This issue needs a team member to investigate its status. labels Mar 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript High Priority
Projects
None yet
Development

No branches or pull requests

5 participants