@@ -73,21 +73,21 @@ async function activateLc(
73
73
74
74
watch ( [ enabledHybridMode , enabledTypeScriptPlugin ] , ( newValues , oldValues ) => {
75
75
if ( newValues [ 0 ] !== oldValues [ 0 ] ) {
76
- requestReloadVscode (
77
- `Please reload VSCode to ${ newValues [ 0 ] ? 'enable' : 'disable' } Hybrid Mode.`
76
+ requestRestartExtensionHost (
77
+ `Please restart extension host to ${ newValues [ 0 ] ? 'enable' : 'disable' } Hybrid Mode.`
78
78
) ;
79
79
}
80
80
else if ( newValues [ 1 ] !== oldValues [ 1 ] ) {
81
- requestReloadVscode (
82
- `Please reload VSCode to ${ newValues [ 1 ] ? 'enable' : 'disable' } Vue TypeScript Plugin.`
81
+ requestRestartExtensionHost (
82
+ `Please restart extension host to ${ newValues [ 1 ] ? 'enable' : 'disable' } Vue TypeScript Plugin.`
83
83
) ;
84
84
}
85
85
} ) ;
86
86
87
87
watch ( ( ) => config . server . includeLanguages , ( ) => {
88
88
if ( enabledHybridMode . value ) {
89
- requestReloadVscode (
90
- 'Please reload VSCode to apply the new language settings.'
89
+ requestRestartExtensionHost (
90
+ 'Please restart extension host to apply the new language settings.'
91
91
) ;
92
92
}
93
93
} ) ;
@@ -125,13 +125,13 @@ async function activateLc(
125
125
useHybridModeStatusItem ( ) ;
126
126
useInsidersStatusItem ( context ) ;
127
127
128
- async function requestReloadVscode ( msg : string ) {
128
+ async function requestRestartExtensionHost ( msg : string ) {
129
129
const reload = await vscode . window . showInformationMessage (
130
130
msg ,
131
- 'Reload Window '
131
+ 'Restart Extension Host '
132
132
) ;
133
133
if ( reload ) {
134
- executeCommand ( 'workbench.action.reloadWindow ' ) ;
134
+ executeCommand ( 'workbench.action.restartExtensionHost ' ) ;
135
135
}
136
136
}
137
137
}
0 commit comments