Fix shared project code completion bug

In the editor extensions, don't call Document.AttachToProject while the
extension chain is being initialized.

Fixes bug #22060 - Xaml CodeCompletion not working in Shared projects.