File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
VSCode/vscode-extension/src Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -580,7 +580,7 @@ async function startLanguageServer(context: vscode.ExtensionContext): Promise<vo
580580 if ( e . affectsConfiguration ( 'strideShaderTools.shaderPaths' ) ) {
581581 const updatedConfig = vscode . workspace . getConfiguration ( 'strideShaderTools' ) ;
582582 const paths = updatedConfig . get < string [ ] > ( 'shaderPaths' ) ?? [ ] ;
583- client . sendNotification ( 'stride/updateShaderPaths' , {
583+ client ? .sendNotification ( 'stride/updateShaderPaths' , {
584584 additionalShaderPaths : paths ,
585585 } ) ;
586586 }
@@ -590,7 +590,7 @@ async function startLanguageServer(context: vscode.ExtensionContext): Promise<vo
590590 // Notify language server when workspace folders are added or removed
591591 context . subscriptions . push (
592592 vscode . workspace . onDidChangeWorkspaceFolders ( ( e ) => {
593- client . sendNotification ( 'stride/updateWorkspaceFolders' , {
593+ client ? .sendNotification ( 'stride/updateWorkspaceFolders' , {
594594 added : e . added . map ( ( f ) => f . uri . fsPath ) ,
595595 removed : e . removed . map ( ( f ) => f . uri . fsPath ) ,
596596 } ) ;
You can’t perform that action at this time.
0 commit comments