Closed victor-homyakov closed 10 years ago
Nice idea! I can treat a string literal like a filename without extension. The only problem I see is too many files with same name but different extension in your project.
AFAIK that's the only case when extension is omitted, at least I cannot remember similar cases for other languages. Therefore I think that '.js' would be preferred extension, especially if current file is JavaScript.
In case when information about language is unavailable, plugin may use list of preferred extensions.
I can give another example - resolving views in Spring MVC. That happens in my projects, and IDEA Spring support plugin fails to discover my ViewResolver and would not jump to templates by name.
I think, the best way is to start searching using source file extension, if it is not found - search files with any extension.
Yep, that would be great.
Now it finds and shows variants in the following order: exact name + extension match, name + source tile type match, name without extension match. Also made it is case insensetive. Uploaded 1.6 to repo, check it out and comment if it works for you.
Works fine. Thanks!!!
In RequireJS filenames are specified without extension
.js
, e.g.Is it possible to add missing extension in this case, i.e. navigate to
module.js
when Ctrl-clicking on string'path/module'
?