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 right paren after cursor when completing funciton/method calls #5935

Open
mkaput opened this issue Jul 2, 2024 · 3 comments · May be fixed by #5956
Open

Insert right paren after cursor when completing funciton/method calls #5935

mkaput opened this issue Jul 2, 2024 · 3 comments · May be fixed by #5956
Labels
good first issue Good for newcomers help wanted Extra attention is needed ide This issue refers to CairoLS or editor extensions

Comments

@mkaput
Copy link
Contributor

mkaput commented Jul 2, 2024

Currently, LS is completing functions/methods like this:

// before
x.<caret>

// after
x.foo(<caret>

Change this to work as following:

// before
x.<caret>

// after
x.foo(<caret>)

Code to update:

insert_text: Some(format!("{}(", name)),

@mkaput mkaput added good first issue Good for newcomers help wanted Extra attention is needed ide This issue refers to CairoLS or editor extensions labels Jul 2, 2024
@kaksv
Copy link

kaksv commented Jul 4, 2024

Is this issue still open?

@mkaput
Copy link
Contributor Author

mkaput commented Jul 4, 2024

There is #5956 in review that attempts to implement this

@kaksv
Copy link

kaksv commented Jul 5, 2024

Alright i had created a PR but let me look into something else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed ide This issue refers to CairoLS or editor extensions
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants