Skip to content

Extracting constants should use "kind": "refactor.extract.constant" #954

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

Open
the-sun-will-rise-tomorrow opened this issue May 3, 2025 · 0 comments

Comments

@the-sun-will-rise-tomorrow

Some LSP clients, such as Eglot, understand and bind default actions to specific refactorings, such as extracting constants and functions.

Microsoft documentation references these specific kinds of refactorings here:
https://code.visualstudio.com/docs/editing/refactoring#_keyboard-shortcuts-for-code-actions

Currently, typescript-language-server seems to announce such refactorings as just "kind":"refactor".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant