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
vsce: patch release v2.2.13 #43204
vsce: patch release v2.2.13 #43204
Conversation
Bundle size report 📦
Look at the Statoscope report for a full comparison between the commits 8f65c35 and b6ee0fc or learn more. Open explanation
|
@abeatrix could you elaborate on the improvements around logging in and out? It's quite a vague description, and there are a lot of various changes, and I'm finding it hard as the reviewer to judge which ones make sense. If there are UI changes, some screenshots or a Loom video would help, too. |
Oh yea i'm recording a loom video right now sorry about that, wasn't expected anyone to look at this PR til tomorrow 🤣 Will post in 10 mins! |
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
const packageJson: any = JSON.parse(originalPackageJson) | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access | ||
packageJson.name = 'sourcegraph' | ||
fs.writeFileSync('package.json', JSON.stringify(packageJson)) | ||
|
||
childProcess.execSync('yarn vsce package --yarn --allow-star-activation -o dist', { stdio: 'inherit' }) | ||
childProcess.execSync('vsce package --yarn --allow-star-activation -o dist', { stdio: 'inherit' }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I’m not sure if this would work on CI (vsce
might not be in the PATH). Does it work to run yarn vsce
here considering you moved vsce
to be a dependency of this project? I guess we can also just try this on CI and if it works we're good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when I run it locally it was giving me the error message about duplicated workspace name --do you get the same error as well? It might not work the same on CI though so we can definitely make the change again if it doesn't run, what do you think?
For future references, vsce gives out a warning when running the package command: However, updating the version to 2.12.0 resulted in the following error: ❯ vsce package --yarn --allow-star-activation
ERROR Command failed: yarn list --prod --json I believe this is due to the limitation of vsce not supporting yarn v2: microsoft/vscode-vsce#517 |
Follow up on #43060 - moving tokens from user settings to secret storage
Update 1
The vsce package output was not working as intended in the previous PR, so I've fixed that (users were not logged in automatically) and made some improvements in the general user experience about logging in and out (slient pop-ups when login in).
See Loom video demo: https://www.loom.com/share/d475b8898d4c4c6eacbd4b82fe5dc698
Update 2
The release pipeline was also broken which @philipp-spiess and I were able to dive into and got them to work locally at least. For example:
Test plan
Tested with package output here:
sourcegraph-2.2.13.vsix.zip
Integration test is also passing:
App preview:
Check out the client app preview documentation to learn more.