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.
This will improve the performance of indexing when using a GPT model.
Also, improved the Async interface to also have an async decode method.
Note: I was only able to test this method with the test I added as I do
not have access to a GPT model.
Co-authored-by: Rob Leidle <rleidle@tesla.com>
Adding the workerpool logic broke gui as vite does not support __dirname
or path.join(...). To work around this, moved the gui dependency of
stripImages out of countTokens.ts