[Ide] Only initialize the Extension Chain for files.

Another fix for bug 24829.