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

Completion duplicates colon of symbol #8

Open
MartyBeGood opened this issue Jul 23, 2018 · 3 comments
Open

Completion duplicates colon of symbol #8

MartyBeGood opened this issue Jul 23, 2018 · 3 comments

Comments

@MartyBeGood
Copy link

MartyBeGood commented Jul 23, 2018

The code completion sometimes duplicates the leading colon of a symbol.

Example code:

class MyModel < ApplicationRecord
  validates :name, presence: true
  validates | #cursor be here, we want to validate the password
end

Now you can experience the following:

  1. You start typing the name of the symbol, you won't find it in the autocomplete-list (because you haven't typed the leading colon)
  2. You type a colon, and select the symbol you want via arrow keys. You then press enter, symbol name gets placed with a single leading colon, everything is fine
  3. You type a colon and the first letters of the symbol you want. Your symbol is at the top of the autocomplete list. You type enter to have it autocompleted. It gets placed with an additional leading colon, which is quite annoying
@castwide
Copy link
Owner

Confirmed. This problem appears to be specific to Atom, although I've noticed a wart in VS Code's symbol autocompletion that may have the same root cause.

@jezman
Copy link

jezman commented Oct 5, 2018

This problem can be solved?

@chenjau
Copy link

chenjau commented Nov 27, 2018

not only colons,
1.c (press tab) -> 1.cchr
1.ch (press tab) -> 1.chr
1.de (press tab) -> 1.dedenominator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants