@@ -311,22 +311,22 @@ export class ExtensionState {
311
311
} ;
312
312
313
313
/**
314
- * Show a popup asking the user to reload the VS Code window after
315
- * changes made in the VS Code environment settings
316
- * (e.g: terminal.integrated.env.linux).
314
+ * Show a popup asking the user to restart the Ada and GPR language
315
+ * servers when some changes are made in the VS Code environment
316
+ * settings (e.g: terminal.integrated.env.linux).
317
317
*/
318
- public showReloadWindowPopup = async ( ) => {
318
+ public showRestartLanguageServersPopup = async ( ) => {
319
319
const selection = await vscode . window . showWarningMessage (
320
- `The workspace environment has changed: the VS Code window needs
321
- to be reloaded in order for the Ada Language Server to take the
320
+ `The workspace environment has changed: the Ada Language Server instances
321
+ need to be restarted in order to take the
322
322
new environment into account.
323
- Do you want to reload the VS Code window ?` ,
324
- 'Reload Window ' ,
323
+ Do you want to restart the Ada Language Server instances ?` ,
324
+ 'Restart Language Servers ' ,
325
325
) ;
326
326
327
- // Reload the VS Code window if the user selected 'Yes'
328
- if ( selection == 'Reload Window ' ) {
329
- void vscode . commands . executeCommand ( 'workbench.action.reloadWindow' ) ;
327
+ // Restart the Ada and GPR language servers if the user asks for it
328
+ if ( selection == 'Restart Language Servers ' ) {
329
+ void vscode . commands . executeCommand ( CMD_RESTART_LANG_SERVERS ) ;
330
330
}
331
331
} ;
332
332
@@ -346,13 +346,13 @@ export class ExtensionState {
346
346
347
347
// React to changes made in the environment variables, showing
348
348
// a popup to reload the VS Code window and thus restart the
349
- // Ada extension .
349
+ // Ada and GPR language servers .
350
350
if ( e . affectsConfiguration ( TERMINAL_ENV_SETTING_NAME ) ) {
351
351
const new_value = vscode . workspace . getConfiguration ( ) . get ( TERMINAL_ENV_SETTING_NAME ) ;
352
352
logger . info ( `${ TERMINAL_ENV_SETTING_NAME } has changed: show reload popup` ) ;
353
353
logger . info ( `${ TERMINAL_ENV_SETTING_NAME } : ${ JSON . stringify ( new_value , undefined , 2 ) } ` ) ;
354
354
355
- void this . showReloadWindowPopup ( ) ;
355
+ void this . showRestartLanguageServersPopup ( ) ;
356
356
}
357
357
} ;
358
358
0 commit comments