"Go to symbol" misses the first function and prefers a worse match if it contains all the typed chars
Reported by
woxxom@gmail.com,
Aug 31 2017
|
||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36 Steps to reproduce the problem: 1. open the attached test.html 2. open devtools 3. reload the page 4. press Ctrl-Shift-O to invoke "Go to symbol" 5. type "first", observe 6. delete the text you've typed and type "somefun", observe What is the expected behavior? * "first" is the first in the list * "someFunction1" is the first in the list What went wrong? * "first" is absent * "IrrelevantFunctionSeekOrMissEKGFreqUnderflow" is the first in the list Did this work before? No Chrome version: 60.0.3112.113 Channel: n/a OS Version: 6.1 (Windows 7, Windows Server 2008 R2) Flash Version: Shockwave Flash 26.0 r0 As for the second observation, I suggest to prioritize results matched as: * prefix +10 weight * contiguous match +5 weight * letter case match when the user typed in different letter cases +20 weight P.S. The feature always worked this way since it appeared in M59 as far as I can tell.
,
Aug 31 2017
|
||
►
Sign in to add a comment |
||
Comment 1 by woxxom@gmail.com
, Aug 31 2017