Open xorye opened 4 years ago
+1
@xorye is there any chance that you work on this issue?
@angelozerr yes, I can look into this
For this issue:
@angelozerr do you think the second portion of this issue is worth pursuing? I know we were thinking of implementing a command that will bind to a schema that is passed by the client. (ie. the client provides a wizard to select the schema file, then calls a LemMinX command to bind the document to the schema). However, using a CodeAction
in this scenario means nothing needs to be implemented on the client side.
However, using a CodeAction in this scenario means nothing needs to be implemented on the client side.
The idea with CodeAction is to generate a CodeAction with a command id (only when client has the proper capability). This command id will used on client side to open a XSD files (This part could be managed by https://github.com/redhat-developer/vscode-xml/issues/395 which will work with CodeLens).
In short I think we could split this issue in 2 isssues like explained https://github.com/eclipse/lemminx/issues/807#issuecomment-649640549
@fbricon 's idea:
For these code actions:
Rename each of them to match this format:
Bind to the generated XSD 'test.xsd' with xsi:noschemaLocation
toGenerate 'test.xsd' and bind with xsi:noschemaLocation
.After, we could add another code action if test.xsd exists:
Bind to 'test.xsd' with xsi:noschemaLocation
.