autocomplete-plus icon indicating copy to clipboard operation
autocomplete-plus copied to clipboard

Duplicate words with different syntactic scopes appearing as suggestions

Open nathansobo opened this issue 8 years ago • 3 comments

I'm seeing the same word showing up as a suggestion with two different syntactic icons.

screen shot 2017-11-02 at 10 09 24 am

Steps to reproduce:

  1. Open: this version of text-editor-spec.js at line 2010
  2. Select both instances of setCursorScreenPosition
  3. Try to replace with setCursorBufferPosition

/cc @leroix

nathansobo avatar Nov 02 '17 16:11 nathansobo

@nathansobo did you have ide-typescript enabled when this happened?

leroix avatar Nov 18 '17 22:11 leroix

Yea, I'm pretty sure the top suggestion is coming from ide-typescript and the bottom one is coming from the default provider. Perhaps, ide-typescript should exclude lower priority providers i.e. excludeLowerPriority: true?

/cc @damieng

leroix avatar Nov 18 '17 22:11 leroix

Note: https://github.com/atom/autocomplete-plus/pull/893

leroix avatar Nov 20 '17 20:11 leroix