Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 339386 - XML editor content assist shows old suggestions on schema change
Summary: XML editor content assist shows old suggestions on schema change
Status: NEW
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: wst.xml (show other bugs)
Version: 3.1.1   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: Future   Edit
Assignee: wst.xml CLA
QA Contact: Nick Sandonato CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-09 11:36 EST by Tuukka Mustonen CLA
Modified: 2013-06-19 11:12 EDT (History)
3 users (show)

See Also:


Attachments

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