<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/142469>142469</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
lldb-dap VSCode extension does not support multi-root workspaces
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
award999
</td>
</tr>
</table>
<pre>
VSCode has a [multi-root workspace](https://code.visualstudio.com/docs/editing/workspaces/multi-root-workspaces) concept which does not currently work with the lldb-dap extension. The code assumes there is always a workspace folder:
```
cwd: workspaceFolder!!.uri.fsPath,
```
which is not the case when a code-workspace file is open. It results is a NPE style error:

</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJx8kt1u4yoQx58G34xsAf5IuPBF2p5IvTmqdI72HsMkZpcYi4F68_Yru9mkWlUrIYGG-fjNzF8TufOE2LP2ibUvhc5pDLHXi45WKVUMwV77b_89B4swagINrH26ZJ9cGUNIsIT4g2ZtkLUvTO7HlGZi9YHJI5NHEyxW746y9pSydaEy4cLk0QZDTB7RuuSmM5PHe5bV_MhefrYrMGEyOCdYRmdGsAEJppDA5BhxSv66wcDi0ghpRPDeDqXVM-DPhBO5MFXw_4iwUoEmyhek1TEiOALtF31d-7vXhFPwFuPaDT-wjt8OP5jFsvrwcDx--EnBpKhydNWJ3nQamXz-I_AD3H1gr4hGE8Iy4gR6wyo_FXd-4wozThW8JohI2SfaWOHft3-A0tUjYIzhNyM_rBDt0-tFn79cyNmlMQ-3LWTCWOqUtBkvOKV19JoItwfXu91QN6Lc1a0qG2l35d52p1J0Qy13Qu5RGSZVYfvaqlrpAnuxa_Z7VatOFGPf6X0j6qHjrRg4qoYr3oi6PUm1P6lODIXrJZct77gUqpWNqIxutaiV2jWiGU5csYbjRTtfef9-qUI8F44oYy8a2XSq8HpAT5tqpZxwge2XSbmKOPZrUDnkM7GGe0eJHmmSSx77uzhu2r5r5KEryvMcYoKv1E5Fjr7_y3DXcrernGP4jiYxedwg1_neunjv5a8AAAD__4ArJHA">