-
Notifications
You must be signed in to change notification settings - Fork 25
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
add support for global endpoint uri completion #121 #125
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is affecting Java too. I think that we need to include test for Java dsl too.
int nextQuote = line.indexOf('\"', uriAttribute + 5); | ||
if (isBetween(characterPosition, uriAttribute + 5, nextQuote)) { | ||
return line.substring(uriAttribute + 5, nextQuote); | ||
int firstQuote = line.indexOf('\"', uriAttribute); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is dangerous, if you have another attribute on the same line, for instance the id before, it won't work. you need to keep the search on uri="
if it has not break it worth adding a test for this case (or at least to raise an issue to add it)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think you are right. I am starting to search in the line at the position of the URI attribute which will most likely be followed by ="value".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
my bad, you're right
created #129 to handle global endpoints in Java DSL |
Signed-off-by: Lars Heinemann <[email protected]>
e602206
to
d76c821
Compare
@apupier this one has to be merged first |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the list containing the "endpoint" needs to be splitted between Java and xml
needs to be reported in this PR then |
reported it |
merged as part of #124 |
Signed-off-by: Lars Heinemann [email protected]