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

Indicate source of element for completion #394

Merged

Conversation

NikolasKomonen
Copy link
Contributor

@NikolasKomonen NikolasKomonen commented May 27, 2019

Fixes #210

Example with A description and filename

Selection_045

@NikolasKomonen
Copy link
Contributor Author

NikolasKomonen commented May 27, 2019

@fbricon @angelozerr

Thoughts on the final result, any preferences for me to change anything?

Will do tests once the implementation is confirmed.

@NikolasKomonen NikolasKomonen force-pushed the completionLabelXSDDTD branch from adbedd8 to 82c7ea6 Compare May 27, 2019 16:25
Copy link
Contributor

@fbricon fbricon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commit message title should be shorter

@fbricon
Copy link
Contributor

fbricon commented May 27, 2019

Missing unit tests for xsd and dtd sources

@fbricon
Copy link
Contributor

fbricon commented May 27, 2019

Overall it looks pretty good (using Source: instead of File:)
May-27-2019 15-57-39

@fbricon fbricon changed the title Indication in description of completion item that includes the file name of the schema they come from. Add source of node definition to completion documentation May 27, 2019
@NikolasKomonen NikolasKomonen changed the title Add source of node definition to completion documentation Indicate source of element for completion May 27, 2019
@NikolasKomonen NikolasKomonen force-pushed the completionLabelXSDDTD branch 2 times, most recently from 43f896c to 214a197 Compare May 27, 2019 21:17
@NikolasKomonen
Copy link
Contributor Author

@fbricon Updated with tests, now 'Source' is used instead of 'File' and the file URI is provided in the constructor as @angelozerr indicated.

Copy link
Contributor

@fbricon fbricon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about DTDs?

@fbricon
Copy link
Contributor

fbricon commented May 27, 2019

Please fix the conflict with master

the file name of the schema they come from.

Fixes eclipse-lemminx#210

Signed-off-by: Nikolas Komonen <[email protected]>
@NikolasKomonen NikolasKomonen force-pushed the completionLabelXSDDTD branch from 214a197 to 8326fbf Compare May 28, 2019 14:10
@NikolasKomonen
Copy link
Contributor Author

@fbricon Updated

@fbricon fbricon merged commit 8182111 into eclipse-lemminx:master May 28, 2019
@NikolasKomonen NikolasKomonen deleted the completionLabelXSDDTD branch May 28, 2019 15:36
@NikolasKomonen NikolasKomonen restored the completionLabelXSDDTD branch May 29, 2019 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mark element coming from XML Schema/DTD for completion
3 participants