diff --git a/vscode/src/dependenciesTree.ts b/vscode/src/dependenciesTree.ts index 076ab71ad..c7730081a 100644 --- a/vscode/src/dependenciesTree.ts +++ b/vscode/src/dependenciesTree.ts @@ -144,11 +144,11 @@ export class DependenciesTree private async fetchDependencies(): Promise { this.gemRootFolders = {}; - if (!this.currentWorkspace) { + if (!this.currentWorkspace || !this.currentWorkspace.lspClient) { return []; } - const resp = (await this.currentWorkspace.lspClient?.sendRequest( + const resp = (await this.currentWorkspace.lspClient.sendRequest( "rubyLsp/workspace/dependencies", {}, )) as [