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

Ability to rename a namespace. #366

Closed
NikolasKomonen opened this issue May 2, 2019 · 1 comment · Fixed by #403
Closed

Ability to rename a namespace. #366

NikolasKomonen opened this issue May 2, 2019 · 1 comment · Fixed by #403
Assignees
Labels
good first issue Good for newcomers
Milestone

Comments

@NikolasKomonen
Copy link
Contributor

NikolasKomonen commented May 2, 2019

If the main namespace name is highlighted, and rename is called on it, replace all instances of it in the element names.

eg:

<root xmlns:xs="...">
<xs:element />
<xs:complexType />
<root xmlns:xs="...">  <!-- highlight 'xs' and renamed to 'xsd' -->
<xs:element />
<xs:complexType />
<root xmlns:xsd="...">
<xsd:element />
<xsd:complexType />
@NikolasKomonen NikolasKomonen added the good first issue Good for newcomers label May 2, 2019
@angelozerr
Copy link
Contributor

+1 !

@NikolasKomonen NikolasKomonen added this to the v0.7.0 milestone May 21, 2019
NikolasKomonen pushed a commit to NikolasKomonen/lsp4xml that referenced this issue May 29, 2019
Fixes eclipse-lemminx#366

Can rename namespace declaration and all will change, renaming element with namespace does not wipe
namespace, attribute values referencing a namespace will update if necessary

Signed-off-by: Nikolas <nikolaskomonen@gmail.com>
NikolasKomonen pushed a commit to NikolasKomonen/lsp4xml that referenced this issue May 29, 2019
Fixes eclipse-lemminx#366

Can rename namespace declaration and all will change, renaming element with namespace does not wipe
namespace, attribute values referencing a namespace will update if necessary

Signed-off-by: Nikolas <nikolaskomonen@gmail.com>
NikolasKomonen pushed a commit to NikolasKomonen/lsp4xml that referenced this issue May 29, 2019
Fixes eclipse-lemminx#366

Can rename namespace declaration and all will change, renaming element with namespace does not wipe
namespace, attribute values referencing a namespace will update if necessary

Signed-off-by: Nikolas <nikolaskomonen@gmail.com>
NikolasKomonen pushed a commit to NikolasKomonen/lsp4xml that referenced this issue May 29, 2019
Fixes eclipse-lemminx#366

Can rename namespace declaration and all will change, renaming element with namespace does not wipe
namespace, attribute values referencing a namespace will update if necessary

Signed-off-by: Nikolas <nikolaskomonen@gmail.com>
NikolasKomonen pushed a commit to NikolasKomonen/lsp4xml that referenced this issue May 29, 2019
Fixes eclipse-lemminx#366

Can rename namespace declaration and all will change, renaming element with namespace does not wipe
namespace, attribute values referencing a namespace will update if necessary

Signed-off-by: Nikolas <nikolaskomonen@gmail.com>
NikolasKomonen pushed a commit to NikolasKomonen/lsp4xml that referenced this issue May 30, 2019
Fixes eclipse-lemminx#366

Can rename namespace declaration and all will change, renaming element with namespace does not wipe
namespace, attribute values referencing a namespace will update if necessary

Signed-off-by: Nikolas <nikolaskomonen@gmail.com>
angelozerr added a commit that referenced this issue May 31, 2019
Fixes #366

Can rename namespace declaration and all will change, renaming element with namespace does not wipe
namespace, attribute values referencing a namespace will update if necessary

Signed-off-by: Nikolas <nikolaskomonen@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants