-
-
Notifications
You must be signed in to change notification settings - Fork 117
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
LanguageServerCodeTransformExtension: allow query class new variants #2645
LanguageServerCodeTransformExtension: allow query class new variants #2645
Conversation
I didn't found any similar method on the LSP side. If such one exist, please close this PR. Up until now, I was manually creating a list of variants for each project and had overlooked that Phpactor provides more generators than it did about four years ago. Usage from Neovim: |
There's a code action for creating new classes? What's the use case here? |
No, there is LSP command |
phpactor/lib/Extension/LanguageServerCodeTransform/LspCommand/CreateClassCommand.php Lines 24 to 26 in b890cfb
|
there is a code action to create classes. create an empty file and invoke code actions on it. You will get to select from the variants |
I found Stubbornly, I probably can change the client code to create empty buffer and call the mentioned code action from it (maybe the code will become much simpler) but what do we need |
I see: |
Probably my direct call to |
In practice the code action is not available just after creating document at the client side. I tried to defer execution in the client side ways (autocommands in Neovim) but it seems that I need some information from the server about such availability. |
Deferring the call after |
No description provided.