Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 335145 - code-completion on "use"-directive duplicates already written text
Summary: code-completion on "use"-directive duplicates already written text
Status: CLOSED WORKSFORME
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X
: P1 normal (vote)
Target Milestone: ---   Edit
Assignee: PHP Core CLA
QA Contact: Ilina Stefanova CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-23 23:12 EST by Sebastian Proksch CLA
Modified: 2020-05-14 10:15 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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...