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

Bug 339386

Summary: XML editor content assist shows old suggestions on schema change
Product: [WebTools] WTP Source Editing Reporter: Tuukka Mustonen <catapl3xis>
Component: wst.xmlAssignee: wst.xml <wst.xml-inbox>
Status: NEW --- QA Contact: Nick Sandonato <nsand.dev>
Severity: enhancement    
Priority: P3 CC: catapl3xis, nsand.dev, paul.fullbright
Version: 3.1.1   
Target Milestone: Future   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Tuukka Mustonen CLA 2011-03-09 11:36:26 EST
Build Identifier: 20090920-1017

XML editor needs to be closed and re-opened for content assist to pick up new schema structure.

Reproducible: Always

Steps to Reproduce:
1. Create a XML instance which you point to a specific (existing) schema (on same folder, in my case)
2. Press CTRL+Space to see the content-assist working
3. Edit the schema by changing an attribute, for example
4. In XML editor, press CTRL+Space and find the old suggestions present

However, despite of content assist suggesting old items, XML editor does validate the instance correctly against the changed schema.

Workaround: after doing changes to schema, close the XML editor and re-open file.
Comment 1 Nick Sandonato CLA 2011-03-09 11:48:51 EST
There's a button in the toolbar to "Reload Dependencies". That might save you from having to close the editor.

Would you mind if we changed this to an enhancement? We would need to make an enhancement to our CMDocumentManager to be aware of these schema changes.
Comment 2 Tuukka Mustonen CLA 2011-03-10 02:30:21 EST
Aah, found the Reload Dependencies -button and it works. Yes, I think it's totally acceptable to mark this as an enhancement as there is a workaround and also an actual feature (button) for this.

Keenly waiting on the editor picking up the schema changes automatically, though :)