cairo icon indicating copy to clipboard operation
cairo copied to clipboard

Insert right paren after cursor when completing funciton/method calls

Open mkaput opened this issue 1 year ago • 7 comments
trafficstars

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:

https://github.com/starkware-libs/cairo/blob/cdaceb909ccf0644b7e385669d2c48417ceb90d4/crates/cairo-lang-language-server/src/ide/completion/completions.rs#L285

mkaput avatar Jul 02 '24 12:07 mkaput