When entering an XML document, autocompletion ends abruptly (and makes an
incorrect choice) if a punctuation character like ":" or "/" is typed.
 
Reproduce as follows.  Create a new XML schema document file "test.xsd", and
paste the following two lines:
 
<?xml version="1.0"?>
<xs:schema xmlns:xs=" http://www.w3.org/2001/XMLSchema
<http://www.w3.org/2001/XMLSchema> ">

(IDEA marks the end of the xs:schema element with a red wavy line indicating
that the "Element is not closed".)
Now try to close the element by positioning the cursor at the end of the
file, and typing "</xs:schema>".  
As soon as you enter "<", the autocompletion box pops up giving you several
choices, the first of which is "xs:annotation".
As soon as you enter "/", autocompletion box disappears and IDEA inserts
"<xs:annotation>", which is wrong.  Best would be if IDEA had offered
"/xs:schema" in the autocompletion box; then the "/" would have matched that
entry.  At the very least, however, the slash should indicate mismatch with
any autocompletion choices and the box should just disappear.
 
Fix it up by hand so that the file ends with "</xs:schema>".  Now position
the cursor inside the xs:schema element.
 
Type "<".  Autocompletion box pops up with choices like "xs:annotation" and
"xs:element".  You decide you'd like xs:element, so you type "xs:" -- but
before you can press "e", IDEA has autocompleted with "xs:annotation".  The
autocompletion should absorb the colon (":") and wait for further characters
to restrict the list.
 
-Dave
_______________________________________________
Eap-bugs mailing list
[EMAIL PROTECTED]
http://lists.jetbrains.com/mailman/listinfo/eap-bugs

Reply via email to