Why don't omit error checking for apps that first line is just library (e.g.)?
BTW: Your VSCode solution is very sophisticated - but it has one disadvantage:
When you change the lib you manually have to do the import for all the apps that use this lib.
Sure, nothing is technically impossible, but based on staff response to feature requests of this and similar "developer" features I'd be surprised if you get anywhere.
Hence pointing out a solution that works today.
This really depends on your point of view. IMO I consider the manual import of each driver / app to be a benefit.
Typically if I update shared code portions I'd want to gauge their impact on a specific driver / app. If all drivers / apps were automatically updated to use the shared code portion that could be disastrous in a live environment.
I do too. I don't want to update driver A and have potential unintended impact on driver B. Annoys me greatly when it happens at the platform level, and I don't want to exacerbate that problem.