Extracting service identifiers process #453
Replies: 1 comment
-
In the VSCode code base, the service identifier declarations are often in the same module as the service implementation or some contributions. In this project, we need to have access to EVERY service identifiers to register a dummy implementation that we will then be able to override if needed. We don't want to pull the service implementation code if we don't use it, and most tree shakers, even configured as aggressive, fail to remove them as soon as there are potential side effects (like a static field) Do solve this problem, there is a node script using the typescript language service api that refactors the code by extracting all service identifiers in their own module Why this question though? |
Beta Was this translation helpful? Give feedback.
-
What does it mean during the installation process (
npm i
in the repo root dir)?Output:
Beta Was this translation helpful? Give feedback.
All reactions