You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It could be that Sublime LSP doesn't support these kinds of interactions, but the log output indicates that the LS or the Wrangler integration somehow decided to to run the refactoring. Not sure where to start debug this, hence the opening of this issue 🙂
The text was updated successfully, but these errors were encountered:
After some digging it seems the Wrangler code expects arguments of the form {'user_input': {'value': <TargetFilename>, ...}, ...} which it obviously doesn't get. How is this handled in other LSP implementations, e.g. VSCode? (I assume it works there?)
Hi @eproxus ! The LSP protocol (currently) only includes a UI component for the simple rename operation. In VS Code additional UI components are achieved by an extra "middleware". In other IDEs, Wrangler should default to a default name.
In this case, my wild guess is that these two lines have been copy-pasted from the Variable extraction:
Describe the bug
The code action "Wrangler: Extract function" does not work in Sublime Text with Sublime LSP.
To Reproduce
Expected behavior
Some UI to choose function name or a new function with a placeholder name.
Actual behavior
Nothing.
Log shows:
Context
erlang_ls
version (tag/sha): 0.41.1Additional Notes
It could be that Sublime LSP doesn't support these kinds of interactions, but the log output indicates that the LS or the Wrangler integration somehow decided to to run the refactoring. Not sure where to start debug this, hence the opening of this issue 🙂
The text was updated successfully, but these errors were encountered: