You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Update the git extension to support esbuild #296355
I'm migrating all extensions to build using esbuild instead of webpack. One of the last remaining extension is git. This migration is blocked by its use of const enums evanw/esbuild#4394
Problem
The git.d.ts api file declares the git extension's api. This file defines both pure types as well as a few const enums
In the git extension, the g.d.ts file is imported in a number of other files like this:
However the const enums RefType is used at runtime in many places (for example in code such as b.type === RefType.RemoteHead) so we can't actually add the type modifier to the import
Proposal
After a few experiments, here's what I think may work:
In the git extension, add a new file called git.constants.ts that provides runtime declarations of all the const enums from git.d.ts.:
Activity
Port git extension to use esbuild
Port github extension to use esbuild
Port git extension to use esbuild
Update main-os to latest upstream with OS customizations (#50)