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

Bug 335145

Summary: code-completion on "use"-directive duplicates already written text
Product: z_Archived Reporter: Sebastian Proksch <sebastian>
Component: PDTAssignee: PHP Core <php.core-inbox>
Status: CLOSED WORKSFORME QA Contact: Ilina Stefanova <ilina.s>
Severity: normal    
Priority: P1 CC: ganoro, kalin.a
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
Whiteboard:

Description Sebastian Proksch CLA 2011-01-23 23:12:18 EST
I use the code completion (<ctrl>+<space>) to complete the "use"-directive of a partially written classname from another namespace. The completion adds the correct namespace/classname information but does not remove/replace the already typed letters, so this part is duplicated.

Steps to reproduce:

1) create a new PHPFile
2) type "use Excep" and trigger code completion

The result is

"use ExceException"

but I would expect it to be

"use Exception"


Platform:
Mac OS X 10.6.5
Eclipse 3.6.1-M20100909-0800
PDT 2.2.1.v20100826-1100-53184QAN4IJShLXONIZhXX4Na9Od
Comment 1 Zhongwei Zhao CLA 2011-05-04 00:33:01 EDT
it seems to have been fixed in head:)
Comment 2 Kalin CLA 2011-07-29 08:26:59 EDT
Verified.
Closing...