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

CodeAction for cvc-complex-type.2.4.a #589

Closed
angelozerr opened this issue Oct 29, 2019 · 1 comment · Fixed by #591 or enxio/lsp4xml#12
Closed

CodeAction for cvc-complex-type.2.4.a #589

angelozerr opened this issue Oct 29, 2019 · 1 comment · Fixed by #591 or enxio/lsp4xml#12
Assignees
Labels
code action enhancement New feature or request XSD
Milestone

Comments

@angelozerr
Copy link
Contributor

angelozerr commented Oct 29, 2019

Given this XML:

<project xmlns="http://maven.apache.org/POM/4.0.0" 
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <nme />
</project>

image

A code action should fix the element name by using 2 strategies by using allowed tags

  • try to find a similar name by using allowed tags and in this case create a code action like Do you mean 'name'?
  • if no similar name is found, create a code action for each allowed tags Replace with 'modelVersion', Replace with 'name', ...
@angelozerr angelozerr added the XSD label Nov 2, 2019
@NikolasKomonen NikolasKomonen self-assigned this Nov 4, 2019
NikolasKomonen added a commit to NikolasKomonen/lsp4xml that referenced this issue Nov 4, 2019
Fixes eclipse#589

Refer to eclipse#589 for code to test

Signed-off-by: Nikolas Komonen <[email protected]>
NikolasKomonen added a commit to NikolasKomonen/lsp4xml that referenced this issue Nov 4, 2019
Fixes eclipse#589

Refer to eclipse#589 for code to test

Signed-off-by: Nikolas Komonen <[email protected]>
NikolasKomonen added a commit to NikolasKomonen/lsp4xml that referenced this issue Nov 8, 2019
Fixes eclipse#589

Refer to eclipse#589 for code to test

Signed-off-by: Nikolas Komonen <[email protected]>
NikolasKomonen added a commit to NikolasKomonen/lsp4xml that referenced this issue Nov 8, 2019
Fixes eclipse#589

Refer to eclipse#589 for code to test

Signed-off-by: Nikolas Komonen <[email protected]>
NikolasKomonen added a commit to NikolasKomonen/lsp4xml that referenced this issue Nov 11, 2019
Handles regular element names and ones with prefixes

Fixes eclipse#589

Refer to eclipse#589 for code to test

Signed-off-by: Nikolas Komonen <[email protected]>
NikolasKomonen added a commit to NikolasKomonen/lsp4xml that referenced this issue Nov 11, 2019
Handles regular element names and ones with prefixes

Fixes eclipse#589

Refer to eclipse#589 for code to test

Signed-off-by: Nikolas Komonen <[email protected]>
NikolasKomonen added a commit to NikolasKomonen/lsp4xml that referenced this issue Nov 22, 2019
Handles regular element names and ones with prefixes

Fixes eclipse#589

Refer to eclipse#589 for code to test

Signed-off-by: Nikolas Komonen <[email protected]>
NikolasKomonen added a commit to NikolasKomonen/lsp4xml that referenced this issue Nov 22, 2019
Handles regular element names and ones with prefixes

Fixes eclipse#589

Refer to eclipse#589 for code to test

Signed-off-by: Nikolas Komonen <[email protected]>
angelozerr pushed a commit that referenced this issue Nov 22, 2019
Handles regular element names and ones with prefixes

Fixes #589

Refer to #589 for code to test

Signed-off-by: Nikolas Komonen <[email protected]>
@angelozerr angelozerr added this to the v0.9.2 milestone Nov 22, 2019
@angelozerr angelozerr added the enhancement New feature or request label Nov 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code action enhancement New feature or request XSD
Projects
None yet
2 participants