Open core-ai-bot opened 3 years ago
Comment by peterflynn Friday May 17, 2013 at 22:57 GMT
Could this lead to false negatives in some cases? E.g. if the user has overridden toString(), and then invokes QuickEdit on foo.toString()
when Tern isn't sure what type foo
is... would that cause us to not fallback, even though falling back would produce useful results?
Comment by pthiess Monday May 20, 2013 at 18:27 GMT
Reviewed - from our perspective a very low prio - we would suggest not to fix if it would create false positives.@
dloverin
Issue by jeffkenton Friday May 17, 2013 at 19:39 GMT Originally opened as https://github.com/adobe/brackets/issues/3886
In the QuickEdit search we currently use Tern's jump-to-definition search. If it doesn't find anything we fall back to the old QuickEdit regular expression search.
We shouldn't use the fallback if Tern knows the function name is a built-in that we don't have source for. Right now the fallback search finds user functions with the same name even though Tern knows this is wrong.