intellij-emberjs icon indicating copy to clipboard operation
intellij-emberjs copied to clipboard

Can't find component with dash in name

Open goroskob opened this issue 5 years ago • 1 comments

Description

When using Navigate->Class I cannot find component (or anything) with dash in a name, which is by convention every component. If type just parts of the name without dashes, component is found.

Steps to Reproduce

Name component 'my-component'. Use Navigate->Class and search by 'my-component'.

Expected behavior: To find component by it's name

Actual behavior: Component is found only if no dashes typed in.

Reproduces how often: 100%

Versions

  • The first two lines of the Help -> About output:
WebStorm 2018.2.3
Build #WS-182.4323.44, built on September 3, 2018
  • The version of intellij-emberjs (Settings -> Plugins -> Ember.js): 2018.2.4-0

Screenshots

Not found: image Found: image

goroskob avatar Oct 03 '18 08:10 goroskob

I think it caused by the change from https://github.com/Turbo87/intellij-emberjs/pull/220

Right now it replaces - with spaces https://github.com/Turbo87/intellij-emberjs/blob/master/src/main/kotlin/com/emberjs/navigation/EmberGotoClassContributor.kt#L22

I'll see if one can maybe provide intellij with various separators instead of doing the work manually.

makepanic avatar Oct 04 '18 07:10 makepanic