We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ee805c commit ccfe6afCopy full SHA for ccfe6af
src/extension/search.ts
@@ -16,7 +16,7 @@ export function activateSearch(context: ExtensionContext) {
16
17
// biome-ignore lint/suspicious/noExplicitAny: todo
18
function findInFolder(data: any) {
19
- const workspacePath = workspace.workspaceFolders?.[0].uri.fsPath
+ const workspacePath = workspace.workspaceFolders?.[0]?.uri?.fsPath
20
// compute relative path to the workspace folder
21
const relative = workspacePath && path.relative(workspacePath, data.fsPath)
22
if (!relative) {
0 commit comments