@@ -64,9 +64,6 @@ export async function activate(context: vscode.ExtensionContext): Promise<IPower
64
64
"'PowerShell' and 'PowerShell Preview' are both enabled. Please disable one for best performance." ) ;
65
65
}
66
66
67
- // This displays a popup and a changelog after an update.
68
- checkForUpdatedVersion ( context , PackageJSON . version ) ;
69
-
70
67
// Load and validate settings (will prompt for 'cwd' if necessary).
71
68
await Settings . validateCwdSetting ( ) ;
72
69
const extensionSettings = Settings . load ( ) ;
@@ -184,35 +181,6 @@ export async function activate(context: vscode.ExtensionContext): Promise<IPower
184
181
} ;
185
182
}
186
183
187
- function checkForUpdatedVersion ( context : vscode . ExtensionContext , version : string ) {
188
-
189
- const showReleaseNotes = "Show Release Notes" ;
190
- const powerShellExtensionVersionKey = "powerShellExtensionVersion" ;
191
-
192
- const storedVersion = context . globalState . get ( powerShellExtensionVersionKey ) ;
193
-
194
- if ( ! storedVersion ) {
195
- // TODO: Prompt to show User Guide for first-time install
196
- } else if ( version !== storedVersion ) {
197
- vscode
198
- . window
199
- . showInformationMessage (
200
- `The PowerShell extension has been updated to version ${ version } !` ,
201
- showReleaseNotes )
202
- . then ( ( choice ) => {
203
- if ( choice === showReleaseNotes ) {
204
- vscode . commands . executeCommand (
205
- "markdown.showPreview" ,
206
- vscode . Uri . file ( path . resolve ( __dirname , "../CHANGELOG.md" ) ) ) ;
207
- }
208
- } ) ;
209
- }
210
-
211
- context . globalState . update (
212
- powerShellExtensionVersionKey ,
213
- version ) ;
214
- }
215
-
216
184
export function deactivate ( ) : void {
217
185
// Clean up all extension features
218
186
languageClientConsumers . forEach ( ( languageClientConsumer ) => {
0 commit comments