Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 320822

Summary: Code completion should be cancelable
Product: [Tools] CDT Reporter: Dmitry Nezhevenko <dion>
Component: cdt-editorAssignee: Project Inbox <cdt-editor-inbox>
Status: CLOSED DUPLICATE QA Contact: Anton Leherbauer <aleherb+eclipse>
Severity: normal    
Priority: P3 CC: yevshif
Version: 7.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Dmitry Nezhevenko CLA 2010-07-24 16:23:43 EDT
Build Identifier: CDT 7.0

It should be possible to cancel code completion that takes to much time. For example just typing "::" and waiting ~1 sec (to trigger completion) freezes editor on large project (pdom file ~800 Mb) for 1-5 minutes.

I understand, that compute completion proposals for everything is a heavy task but When UI freezes for so much time, it's very annoying. It should be possible to cancel such completion by pressing ESC or some other key. Or maybe some configurable timeout should work.

Another idea is to limit number of variants, for example for :: find only first 10-20 symbols, and add "..." as last one.

Reproducible: Always
Comment 1 Markus Schorn CLA 2010-08-03 03:30:54 EDT

*** This bug has been marked as a duplicate of bug 126698 ***