@@ -20,7 +20,7 @@ import { EvaluateRequestType } from "./Console";
20
20
const streamPipeline = util . promisify ( stream . pipeline ) ;
21
21
22
22
const PowerShellGitHubReleasesUrl =
23
- "https://api.github.com/repos/PowerShell/PowerShell/releases/latest" ;
23
+ "https://api.github.com/repos/PowerShell/PowerShell/releases/latest" ;
24
24
const PowerShellGitHubPrereleasesUrl =
25
25
"https://api.github.com/repos/PowerShell/PowerShell/releases" ;
26
26
@@ -102,11 +102,9 @@ export async function InvokePowerShellUpdateCheck(
102
102
return ;
103
103
}
104
104
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
+ } .`;
110
108
111
109
if ( process . platform === "linux" ) {
112
110
await window . showInformationMessage (
@@ -115,9 +113,8 @@ export async function InvokePowerShellUpdateCheck(
115
113
}
116
114
117
115
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)"
121
118
} `, ...options ) ;
122
119
123
120
// If the user cancels the notification.
@@ -144,10 +141,10 @@ export async function InvokePowerShellUpdateCheck(
144
141
location : ProgressLocation . Notification ,
145
142
cancellable : false ,
146
143
} ,
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
+ } ) ;
151
148
152
149
// Stop the session because Windows likes to hold on to files.
153
150
sessionManager . stop ( ) ;
0 commit comments