ton-blockchain / intellij-ton

TON Development plugin for the IntelliJ Platform
https://plugins.jetbrains.com/plugin/23382-ton
GNU General Public License v3.0
66 stars 8 forks source link

Tab/enter completion of a function name inserts '()' to a very wrong place #176

Closed unserialize closed 1 month ago

unserialize commented 2 months ago

Have the simple code and cursor inside main():

int some_fn() {
    return 1;
}

int main() {
  | // cursor
}

Start typing "som", see "some_fn", then press Enter or Tab.

Expected:

int main() {
  some_fn();|   // cursor (probably, without ;)
}

Actual:

int main() {
    some_fn
}|()  // cursor here, before ()
andreypfau commented 1 month ago

Fixed in 2.2.2