File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -253,17 +253,15 @@ export async function activate(context: ExtensionContext) {
253253 // update the initializationOptions for a possible restart
254254 client . clientOptions . initializationOptions = { settings } ;
255255
256- if ( client . isRunning ( ) ) {
257- client . sendNotification ( 'workspace/didChangeConfiguration' , { settings } ) ;
258- }
259-
260256 if ( event . affectsConfiguration ( 'oxc.configPath' ) ) {
261257 client . clientOptions . synchronize = client . clientOptions . synchronize ?? { } ;
262258 client . clientOptions . synchronize . fileEvents = createFileEventWatchers ( configService . config . configPath ) ;
263259
264260 if ( client . isRunning ( ) ) {
265261 await client . restart ( ) ;
266262 }
263+ } else if ( client . isRunning ( ) ) {
264+ client . sendNotification ( 'workspace/didChangeConfiguration' , { settings } ) ;
267265 }
268266 } ;
269267
You can’t perform that action at this time.
0 commit comments