The code to trigger a rebuild on missing extension.js added in
https://github.com/continuedev/continue/pull/3276
turns out not to be entirely reliable because esbuild sometimes
falls back to full-contents comparison rather than using the modtime.
To fix this, include a buildTimestamp file in the input, and
rewrite that when we want to trigger a rebuild.
Right now, the vscode-extension:continue-ui:build task
deletes extension.js as part of its prepackage.js script.
This wouldn't normally be a problem, because extension.js
is generated by the vscode-extension:esbuild, and
vscode-extension:continue-ui:build is a dependency of
vscode-extension:esbuild, implying it should always get run
first.
But, vscode-extension:esbuild is a background task, that stays
running after it's been started once. Future calls to run that
task become no-ops, because it's already active. This means running
vscode-extension:esbuild ->
vscode-extension:continue-ui:build ->
vscode-extension:esbuild
will lead to the last vscode-extension:esbuild not regenerating
extension.js.
In order to resolve that problem, this commit adds a new foreground
task into the build pipeline:
vscode-extension:esbuild-notify
that tickles the watching background task to wake up and regenerate
extension.js
Remove the built-in themes from the extension since they are not needed.
Since the update to detect the correct color scheme, users have noticed that the `include` logic has been broken causing incorrect styling.
This fix introduces cleaner theme logic since we assume that the vscode extension will have the theme files locally. The include logic now includes nested themes.
It also fixes finding the default themes correctly by comparing both theme ID and theme label.