hi harshkhanna - the AS server is irrelevant in this afaics.
The issue was in JBoss Tools 3.x and fixing JBoss Tools 4.0+
If you still see the issue in latest releases please open bug at https://jira.jboss.org/jira/browse/JBIDE with steps to reproduce - thanks!