Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pre package extensions and install them on startup for users #6403

Merged
merged 12 commits into from
Feb 26, 2025
Merged
Prev Previous commit
Next Next commit
add bootstrap extensions to dev builds
  • Loading branch information
melissa-barca committed Feb 26, 2025
commit 4f12d6d535ed34ab91ce641cd7b304e8e9697da0
2 changes: 2 additions & 0 deletions build/lib/preLaunch.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions build/lib/preLaunch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ async function main() {
// Can't require this until after dependencies are installed
const { getBuiltInExtensions } = require('./builtInExtensions');
await getBuiltInExtensions();
const { getBootstrapExtensions } = require('./bootstrapExtensions');
await getBootstrapExtensions();
}

if (require.main === module) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export class PositronBootstrapExtensionsInitializer extends Disposable {


private getVSIXPath(): URI {
return URI.file(join(this.environmentService.appRoot, 'extensions', 'bootstrap'));
return process.env['VSCODE_DEV'] ? URI.file(join(this.environmentService.appRoot, '.build', 'bootstrapExtensions')) : URI.file(join(this.environmentService.appRoot, 'extensions', 'bootstrap'));
}

override dispose(): void {
Expand Down