-
Notifications
You must be signed in to change notification settings - Fork 29.3k
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
Support refactoring commands provided by TS Server #25739
Comments
I believe the new ts refactoring PR is microsoft/TypeScript#15569 |
Correct. Note command names have changed slightly from the original iteration |
Fixes microsoft#25739, from microsoft/TypeScript#15569 Prototype of refactoring support for ts 2.4
* Prototype TS/JS Refactoring Provider Fixes #25739, from microsoft/TypeScript#15569 Prototype of refactoring support for ts 2.4 * Adding error reporting * Updating for new API * show quick pick for non-inlinable refactrings
@mjbvz How do I see these new refactorings? Can you give an example? |
There's currently only a single refactoring that I am aware of: In a Js file, try something like: function Foo(x) {
this.x = x
}
new Foo(1) and place the cursor over |
That's what I was trying but I don't see it. |
Works now ¯\(ツ)/¯ |
Logging this to track VS Code supporting the refactorings surfaced by microsoft/TypeScript#14624
I believe @mjbvz is on the case
The text was updated successfully, but these errors were encountered: