You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Content assist for keys that exist in YAML and properties files #427
Take the YAML below as example, if I trigger the content-assist command Alt+/ when the cursor is between the curly braces of ${}, it would be better to provide proposals like server.port, spring.application.name, spring.cloud.consul.host and spring.cloud.consul.port.
By the way, I notice that STS4 doesn't have the Quick Fix proposals like Add @Autowired to field variable while STS3 has. Was it possible to integrate this feature into STS4?
By the way, I notice that STS4 doesn't have the Quick Fix proposals like Add @Autowired to field variable while STS3 has. Was it possible to integrate this feature into STS4?
I think it is probably possible. But please raise a separate issue to ask for that. (Also when you ask getting some of the quickfixes back, do try to be specific and list the ones that you actually miss. We may not be able to bring all of them back, but if you are specific there's a better chance of bringing some of them back as requested).
I downloaded the Version: 4.6.2.CI-B2249, it works well.
Thanks!
I think there are some improvements:
These are all good ideas for improvement. However, I would prefer if these were considered as separate enhancement requests.
I'm not sure about number 2. Don't get me wrong, I think it is a good idea from the user perspective, but unfortunately controlling the order of the completions in LSP is somewhat out of our control (the lsp client implementation controls this and it varies a bit between clients, but generally it is based on how well what you typed matches the proposals, rather than any other considerations). For eclipse, we may be able to do something however as I think there's a way to bypass the client logic and force the completions to have a specific ordering.
That being said, this is not totally trivial to implement. So, I'd like to treat these things as separate tickets that we can schedule to work on individually in the future.
Number 1... seems doable, using existing lsp protocol, though we'd have to look into it and figure out how exactly to implement it. So... also prefer a separate ticket for this.
Number 3.... It seems to already to that for me. I.e. if I have this:
spring:
application:
name: ${
And then I start to type some letters, then the completions automatically appear.
Anyhow, it would be nice if you:
clarified what you mean with number 3
raised separate tickets for the other 2 requests.
Or if you prefer, I can also create the extra tickets myself to save you the trouble.
For 3, I mean pop up completions(especially the existing keys) without type any letter.
My English is pretty limited, so it would be better if you raised the tickets.
For 3, I mean pop up completions(especially the existing keys) without type any letter.
Okay so, basically... the completion popup appears just after I typed the '{' ?
I think we can do this probably, by including '{' as a 'trigger character'. But I would be a little worried about it triggering inadvertently when I just typed a '{' without a '$' in front.
That said, since its somewhat easy to do / try. I'll make the change. We can always come back and undo it later.
Activity
kdvolder commentedon Mar 23, 2020
This is a good idea. Thanks for the suggestion.
I think it is probably possible. But please raise a separate issue to ask for that. (Also when you ask getting some of the quickfixes back, do try to be specific and list the ones that you actually miss. We may not be able to bring all of them back, but if you are specific there's a better chance of bringing some of them back as requested).
spring-projects-issues commentedon Apr 6, 2020
(comment in Pivotal Tracker added by Kris De Volder:)
I'm putting this on hold for a bit to return to it again at a later time.
I already created a test case but it isn't passing yet (since still trying to figure out a good way to implement this).
The test case is in branch called
GH_427.Implementation for #427
8 remaining items
Tweak for #427
humphreygao commentedon May 7, 2020
I downloaded the Version: 4.6.2.CI-B2249, it works well.
I think there are some improvements:
${}kdvolder commentedon May 7, 2020
Thanks!
These are all good ideas for improvement. However, I would prefer if these were considered as separate enhancement requests.
I'm not sure about number 2. Don't get me wrong, I think it is a good idea from the user perspective, but unfortunately controlling the order of the completions in LSP is somewhat out of our control (the lsp client implementation controls this and it varies a bit between clients, but generally it is based on how well what you typed matches the proposals, rather than any other considerations). For eclipse, we may be able to do something however as I think there's a way to bypass the client logic and force the completions to have a specific ordering.
That being said, this is not totally trivial to implement. So, I'd like to treat these things as separate tickets that we can schedule to work on individually in the future.
Number 1... seems doable, using existing lsp protocol, though we'd have to look into it and figure out how exactly to implement it. So... also prefer a separate ticket for this.
Number 3.... It seems to already to that for me. I.e. if I have this:
And then I start to type some letters, then the completions automatically appear.
Anyhow, it would be nice if you:
Or if you prefer, I can also create the extra tickets myself to save you the trouble.
humphreygao commentedon May 7, 2020
For 3, I mean pop up completions(especially the existing keys) without type any letter.
My English is pretty limited, so it would be better if you raised the tickets.
kdvolder commentedon May 7, 2020
Okay so, basically... the completion popup appears just after I typed the '{' ?
I think we can do this probably, by including '{' as a 'trigger character'. But I would be a little worried about it triggering inadvertently when I just typed a '{' without a '$' in front.
That said, since its somewhat easy to do / try. I'll make the change. We can always come back and undo it later.
Another tweak for #427
spring-projects-issues commentedon May 8, 2020
(comment in Pivotal Tracker added by Martin Lippert:)
Works nicely, Great work.