-
Notifications
You must be signed in to change notification settings - Fork 521
Use --follow-symlinks
in VSCE package command and simplify build logic
#5212
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
Conversation
Co-authored-by: andyleejordan <[email protected]>
Co-authored-by: andyleejordan <[email protected]>
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.
Kinda close but not ready.
Hey @copilot iterate based on my review. |
I don't have access to the specific review comments. Could you please provide details on what aspects you'd like me to iterate on? The current implementation adds Warning Firewall rules blocked me from connecting to one or more addressesI tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Hey @copilot iterate based on my review again please. |
…ify build logic, add assertion Co-authored-by: andyleejordan <[email protected]>
I've addressed your review feedback in commit 9962d48:
The changes reduce the build script by 17 lines while maintaining the same functionality with better assertions. |
--follow-symlinks
in VSCE package command
Co-authored-by: andyleejordan <[email protected]>
--follow-symlinks
in VSCE package commandThere 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.
A lot of patience went a little ways. As of today, Copilot is responding again and able to collaborate. Growing pains, eh?
--follow-symlinks
in VSCE package command and simplify build logic
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.
Pull Request Overview
This PR implements support for the --follow-symlinks
flag in VSCE to eliminate unnecessary file copying during builds and significantly simplifies the build logic for PowerShell Editor Services (PSES) modules.
- Added
--follow-symlinks
flag to the VSCE package command to handle symbolic links natively - Unified symlink handling logic for both Debug and Release configurations
- Simplified PSES building to consistently use
Invoke-Build
and removed conditional copying logic
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
File | Description |
---|---|
package.json | Added --follow-symlinks flag to the VSCE package command |
vscode-powershell.build.ps1 | Simplified build logic by removing Debug/Release switch statement and file copying operations |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Even having opted out of the broken enterprise ruleset I still couldn't get this to merge without a bypass 🙃 |
This PR implements support for the new
--follow-symlinks
flag in VSCE to eliminate the unnecessary copying of PowerShell Editor Services (PSES) modules during builds, as requested in #5169.What Changed
Package.json Scripts:
--follow-symlinks
flag to thevsce package
command only (not publish)Build Script Simplification:
Invoke-Build
for consistencyBenefits
Before/After Comparison
Before: Build script had separate logic for Debug (symlinks + always build) and Release (copies + conditional build):
After: Unified logic with native VSCE symlink support:
This change leverages the symlink following support added to VSCE in October 2024 (microsoft/vscode-vsce@51e122a).
Fixes #5169.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.