Code Completion changing what I type
Using Illuminated Cloud 2, version 2.2.5.6 in IntelliJ IDEA 2022.3 (Community Edition) (Build #IC-223.7571.182, built on November 29, 2022) to edit a Visualforce Page which contains JavaScript code, I type the following:
console.log('fillMap()...');
what I get is as follows:
console.log('fillMap().selectorText.selectorText.selectorText');'
i.e. when type '.' unwanted code completion has kicked in and interfered with the code I am writing. Despite turning off all auto-completion and code completion options/settings I can find, upgarding to the latest version and restarting the IDE, I still get this counter-productive behaviour.
Comments (6)
-
repo owner -
reporter Thanks! Is it possible somewhere to completely switch off code completion?
-
repo owner I don’t believe that code completion can be disabled altogether. The options for code completions are available under Settings / Preferences > Editor > General > Code Completion. Aside from unwanted completions in JavaScript string literals which I’ve already addressed for the next build, was there some other reason you wanted to disable code completion so that I can be aware of those issues?
-
repo owner As a quick update, I’ve added configuration options to disable IC2’s simple code completions for JavaScript and/or CSS in Community Edition IDEs if desired:
Note that when simple JavaScript completions are disabled, code completions for LWC live templates are still active, as are the JetBrains IDE’s own simple completions. Similar for CSS; when IC2’s completions are disabled, the IDE’s own simple CSS completions will still be offered.
This will all be included in the next official build that’s not the Spring '23 update, likely Thursday of this week.
-
reporter Thanks!
-
repo owner - changed status to resolved
Delivered in 2.2.5.7.
- Log in to comment
Hi, John. Code completion for JavaScript and CSS in Community Edition is quite simple because the Community Edition IDEs themselves don’t provide any first-class support for those languages. In order to provide a reasonable experience for Visualforce, Aura, and LWC in Community Edition IDEs, IC2 does provide simple code completions for them, but they are for the most part not contextual in nature (aside from the file in which completion is activated and, to a limited extent, the other files imported into that file). You can learn more about these limitations here:
https://www.illuminatedcloud.com/support/faq#h.9puup1q9hs4v
Having said that, code completions should not be offered inside of string literals just as they’re not offered inside of comments, and I think that’s the core issue for you here if I understand correctly, so I’ll plan to address that for the next build.