@@ -20,7 +20,7 @@ import { EvaluateRequestType } from "./Console";
2020const streamPipeline = util . promisify ( stream . pipeline ) ;
2121
2222const PowerShellGitHubReleasesUrl =
23- "https://api.github.com/repos/PowerShell/PowerShell/releases/latest" ;
23+ "https://api.github.com/repos/PowerShell/PowerShell/releases/latest" ;
2424const PowerShellGitHubPrereleasesUrl =
2525 "https://api.github.com/repos/PowerShell/PowerShell/releases" ;
2626
@@ -102,11 +102,9 @@ export async function InvokePowerShellUpdateCheck(
102102 return ;
103103 }
104104
105- const commonText : string = `You have an old version of PowerShell (${
106- localVersion . raw
107- } ). The current latest release is ${
108- release . version . raw
109- } .`;
105+ const commonText : string = `You have an old version of PowerShell (${ localVersion . raw
106+ } ). The current latest release is ${ release . version . raw
107+ } .`;
110108
111109 if ( process . platform === "linux" ) {
112110 await window . showInformationMessage (
@@ -115,9 +113,8 @@ export async function InvokePowerShellUpdateCheck(
115113 }
116114
117115 const result = await window . showInformationMessage (
118- `${ commonText } Would you like to update the version? ${
119- isMacOS ? "(Homebrew is required on macOS)"
120- : "(This will close ALL pwsh terminals running in this Visual Studio Code session)"
116+ `${ commonText } Would you like to update the version? ${ isMacOS ? "(Homebrew is required on macOS)"
117+ : "(This will close ALL pwsh terminals running in this Visual Studio Code session)"
121118 } `, ...options ) ;
122119
123120 // If the user cancels the notification.
@@ -144,10 +141,10 @@ export async function InvokePowerShellUpdateCheck(
144141 location : ProgressLocation . Notification ,
145142 cancellable : false ,
146143 } ,
147- async ( ) => {
148- // Streams the body of the request to a file.
149- await streamPipeline ( res . body , fs . createWriteStream ( msiDownloadPath ) ) ;
150- } ) ;
144+ async ( ) => {
145+ // Streams the body of the request to a file.
146+ await streamPipeline ( res . body , fs . createWriteStream ( msiDownloadPath ) ) ;
147+ } ) ;
151148
152149 // Stop the session because Windows likes to hold on to files.
153150 sessionManager . stop ( ) ;
0 commit comments