Skip to content
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

[New Feature]: Support snippets in code action text edits #38380

Open
IMS94 opened this issue Oct 25, 2022 · 0 comments
Open

[New Feature]: Support snippets in code action text edits #38380

IMS94 opened this issue Oct 25, 2022 · 0 comments
Labels
Area/CodeAction Language Server Code Actions Priority/Low Team/LanguageServer Language Server Implementation related issues. #Compiler Type/NewFeature userCategory/Editor

Comments

@IMS94
Copy link
Contributor

IMS94 commented Oct 25, 2022

Description

With microsoft/language-server-protocol#592 LSP 3.18 will add support for snippets in code action text edits.

Seems like VSCode already supports that microsoft/vscode#145374. If so, we should be able to use snippet text edits without the new LSP version.

This will be a major improvement since writing/editing names, etc in text edits applied by code actions will be easier with this.

Describe your problem(s)

Right now, we can't have placeholders inside text edits returned by code actions

Describe your solution(s)

Use Snippet text edits coming in 3.18 of LSP

Related area

-> Editor

@IMS94 IMS94 added Type/NewFeature Team/LanguageServer Language Server Implementation related issues. #Compiler Area/CodeAction Language Server Code Actions labels Oct 25, 2022
@IMS94 IMS94 changed the title [New Feature]: Support snippets in code actions [New Feature]: Support snippets in code action text edits Oct 25, 2022
@ballerina-bot ballerina-bot added needTriage The issue has to be inspected and labeled manually userCategory/Editor labels Oct 25, 2022
@IMS94 IMS94 removed the needTriage The issue has to be inspected and labeled manually label Oct 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area/CodeAction Language Server Code Actions Priority/Low Team/LanguageServer Language Server Implementation related issues. #Compiler Type/NewFeature userCategory/Editor
Projects
Status: No status
Development

No branches or pull requests

3 participants