Uh oh!
There was an error while loading. Please reload this page.
feat: Add PowerShell support to Shiki - #6538
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
AugustinMauroy
left a comment
There was a problem hiding this comment.
I'm neutral on this change. We can display name "Powershell" and use bash highlight. because adding a language Shiki increase bundle size.
@AugustinMauroy it actually increases the build size by aprox ~ 20 KB |
AugustinMauroy
commented
Mar 25, 2024
hummmm really interesting. |
@AugustinMauroy so you mean remove PowerShell config but change display name? it won't highlight according to .ps1 |
AugustinMauroy
left a comment
There was a problem hiding this comment.
with this we are not increasing the bundle size. And we display correct name of "language"
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
thisalihassan
commented
Mar 25, 2024
@AugustinMauroy Done |
AugustinMauroy
left a comment
There was a problem hiding this comment.
LGTM ! Thanks for your contribution 🎉🎉🎉
Lighthouse Results
|
Wait, is the total bundle of the website being increased by 20kb? That's a lot. Anyhow, that gets gzipped I assume, and might not be such a big deal. |
thisalihassan
commented
Mar 25, 2024
@ovflowd vscode import cost shows after gzip it's 4.7k |
thisalihassan
commented
Mar 26, 2024
Hi @ovflowd@AugustinMauroy@aymen94 can we merge this? or do you have any comments for this PR? |
Description
This PR addresses issue #6511 by integrating PowerShell (ps1) syntax highlighting support into the Shiki configuration used on the 'Install on Windows using Package Manager' page. It ensures that when Windows is selected from the dropdown, the codebox correctly highlights PowerShell scripts. This enhancement improves readability for PowerShell users
Validation
Before:
After:
Related Issues
closes#6511
Check List
npx turbo formatto ensure the code follows the style guide.npx turbo testto check if all tests are passing.npx turbo buildto check if the website builds without errors.