This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Created attachment 147696 [details] Module completion When I have a module with dependencies to other modules and I type define([""]... and inside "" I do ctrl + space, I got the list with folders and other js files as you can see it in the screenshot. When I choose the folder, the list disappears and I see ["folder/"]. I waited for a few seconds, because I thought that the list with the modules inside folder appears but it doesn't. For me what I expect that the new list of modules inside folders should appear to choose an other module very quick and not that I have to use ctrl + space again. Regards Chris
I'm not able to do this. The problem is in editor infrastructure, which calls autoquery only if the text was added by user. What I add is that the autoquery is called after typing / in a string. I will try investigate more and keep this issue as enhancement.
At the moment, if I type "r" I got the list, require is a folder in my example, I choose it and what happens is this "require/" so the slash will be added. Is it a difference between I type the / or you insert it after the text as it is still in?
Yes, as I wrote, the editor infrastructure filter autoquery code completion out, when it's a text added to the document is not typed by the user. And inserting text through code completion (like a folder name "folder1/") is not typed text by user, but is inserted by the infrastructure. Another solution would be to insert only the name of folder without the slash at the end, so user will have to type the slash and then the code completion will be invoked automatically again. But IMHO this is not the right. I see your original request as the right one, so I will try to find out some way, how to achieve this.
Maybe I can live witht he workaround with the "folder" and then type / and after this, do is as an improvement maybe. But it's only my opinion. Thx for the great work on this requirejs support.
Integrated into 'main-silver', will be available in build *201406200001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/51429f703ec9 User: Petr Pisl <ppisl@netbeans.org> Log: #245088 - After choose a folder, list disappears
It is ok as it is, but I would prefer that when I type js and it adds js/ that directly after adding, opens the new completion, if it's possible.
Afaik, in html files for <script src="app/.... it is possible or in Java I don't know atm, but in some cases that the auto completion for files/folders comes up automatically without hit ctrl + space.