The Wayback Machine - https://web.archive.org/web/20201106030902/https://github.com/microsoft/language-server-protocol/issues/1092
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

Support onTypeRename #1092

Open
dbaeumer opened this issue Sep 15, 2020 · 3 comments
Open

Support onTypeRename #1092

dbaeumer opened this issue Sep 15, 2020 · 3 comments
Milestone

Comments

@dbaeumer
Copy link
Member

@dbaeumer dbaeumer commented Sep 15, 2020

For language like HTML it would be cool to be able to rename a closing tag automatically if a user changes the name of an opening tag. To make this happen we propose a new message onTypeRename which is comparable to on type format.

@dbaeumer dbaeumer added this to the 3.16 milestone Sep 15, 2020
@angelozerr
Copy link
Contributor

@angelozerr angelozerr commented Sep 15, 2020

@dbaeumer is it to support HTML mirror cursor but with standard LSP requests?

If it that, it means that LSP client should support mirror cursor, LSP should provide a client capability for onTypeRename .

I love this idea and I would like to use it for our XML Language Server..

@dbaeumer
Copy link
Member Author

@dbaeumer dbaeumer commented Sep 15, 2020

Yes, that is the idea also we will not talk about multiple cursor. The idea is to have ranges that must be kept in sync. The client can then decide on how to visualize this.

@octref
Copy link
Contributor

@octref octref commented Sep 27, 2020

@dbaeumer Would love to adopt it 😉

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

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.