atom-ide-cpp
atom-ide-cpp copied to clipboard
Enabling this plugin causes autocompletion after semicolon
This is annoying, as I want to press ; then enter to start a new line, but it instead autocompletes

I found the following workaround to this:
Install from source:
git clone https://github.com/thomasjo/atom-ide-cpp.git
cd atom-ide-cpp
apm link .
apm install
Open node_modules/atom-languageclient/build/lib/auto-languageclient.js. Add this hack to getSuggestions:
async getSuggestions(request) {
if (request.prefix === ';') {
return;
}
// rest of function here
It seems like this is an issue in clangd considering the very lightweight nature of this package. I built clangd from source using current svn trunk and still had this issue.
Workaround for semicolon works great!
Still have the same problem for when expanding curly brackets though (e.g. for a function def). Instead of making a new line, it autocompletes into the curly bracket. Adapting the workaround to check for '{' prefix doesn't work either, because Atom generates both {} at the same time.
