| Summary: | Function content assist doesn't allow parentheses | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Jason Craig <os-dev> | ||||||
| Component: | PDT | Assignee: | PHP Core <php.core-inbox> | ||||||
| Status: | CLOSED WORKSFORME | QA Contact: | |||||||
| Severity: | minor | ||||||||
| Priority: | P3 | CC: | felix.saphir, ganoro, kalin.a | ||||||
| Version: | unspecified | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | PC | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
Created attachment 180840 [details]
patch
workaround
")" is set as the Exit Policy of the Linked Mode UI. So when you typing ")", the cursor will go to the end of the function and the linked mode ui exits. I'm not sure why we need to exit when typing ")". Maybe we can use another character instead of ")". *** Bug 319598 has been marked as a duplicate of this bug. *** Created attachment 184570 [details]
patch
The solution is add the ')' char when typing '(' in LinkedModeUI
seems like a fixed bug like 353783 Verified.
Currently when you type '(', the closing bracket ')' is automatically added.
Closing...
|
Build Identifier: 20100917-0705 When you enter into a function template with content assist, if you try to use parentheses in on of the arguments, content assist takes you to the end of the function when you enter a closing parenthesis. It can be avoided by not using parentheses in the function, but ideally it should track the number of parentheses opened and only move to the end of the function when there are no more open parentheses that were typed into the argument. Reproducible: Always Steps to Reproduce: 1. Type "array_diff" and then press enter to activate the function template. 2. Type "array('a', 'b', 'c')" as the first argument to array_diff. 3. Once you type the second parenthesis, the cursor is moved to the closing parenthesis of the array_diff function.