[Ide] Don't allow file links in shared projects

Fixes bug #20959 - Linking files to shared project makes project unusable