Add rename text input handler#367
Add rename text input handler#367tomv564 merged 3 commits intosublimelsp:masterfrom predragnikolic:add-new-rename-text-input-handler
Conversation
Pull Request Test Coverage Report for Build 795
💛 - Coveralls |
tomv564
left a comment
There was a problem hiding this comment.
Awesome work, great demo also!
I guess users need a recent-ish Sublime Text build (7 May 2018) - if it turns out this build is not available to a lot of our users then we could do a feature detection.
tomv564
left a comment
There was a problem hiding this comment.
The event parameter is provided when the command is triggered by mouse click, for example when right-clicking on a symbol.
Did you test the rename from the context menu after your changes?
Also, I like to make it clear to the user when commands are not supported by LSP.
You added Rename to the panel so it will appear to work even when the server does not support it?
|
You could also choose to change the minimum required build number in your package control submission. |
|
Thanks for explaining :)
Sorry, I didn't, but I fixed it.
The command must be present in the command palette for this to work (see second paragraph), but Sublime won't show the command in the command palette if the
I will let you decide if you want a feature detection :)
|
Ask for new symbol name though the command palette, instead of the window input panel. #206
There is a comment I left for you to have a look.
Can you please tell me, what the purpose of the
eventargument in therunmethod and when do you pass it by to the command?Also Tom, is there something you would like to change? :)