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

Insert placeholders in place of params #310

Closed
pedrovanzella opened this issue May 9, 2013 · 1 comment
Closed

Insert placeholders in place of params #310

pedrovanzella opened this issue May 9, 2013 · 1 comment

Comments

@pedrovanzella
Copy link

It would be awesome if, when completing a function which accepts arguments, YCM left placeholders like those in UltiSnips snippets.

Say you have:

int doSomethingAwesome(int a, char b, float c);

If you were to complete:

doSome<tab>

YCM would insert:

doSomethingAwesome(a, b, c)

You would be left around the first argument (a), in insert mode, to substitute it.
And <tab>ing would move you to the next argument and so on.

@pedrovanzella
Copy link
Author

Sorry, just realised this is a duplicate of #234.

bijancn pushed a commit to bijancn/YouCompleteMe that referenced this issue Jul 26, 2016
[READY] Prevent simultaneous starts of OmniSharp server

Currently, C# completer starts a new server on the `FileReadyToParse` event if no port is defined or the running server does not respond. This can lead to situations where multiple servers with same port and solution are started until one of them become ready. See PR ycm-core#284 and ycm-core#1913.

This is fixed by using `ServerIsActive` instead of `ServerIsRunning` to start the server in `OnFileReadyToParse`. We then check `ServerIsRunning` for an early return.

`ServerIsActive` is updated to check the handle (instead of the port) and to poll the process. We cannot only rely on the port because it can be defined while the process is down: server crashed during start up or its process was directly terminated by the user.

`ServerIsRunning` and `ServerIsReady` are also changed. We return early in both methods by checking `ServerIsAlive` first and we restrict exceptions catching.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/valloric/ycmd/310)
<!-- Reviewable:end -->
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant