Skip to content

Commit ccfe6af

Browse files
SoonIterHerringtonDarkholme
authored andcommitted
chore: a little fix
1 parent 3ee805c commit ccfe6af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/extension/search.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export function activateSearch(context: ExtensionContext) {
1616

1717
// biome-ignore lint/suspicious/noExplicitAny: todo
1818
function findInFolder(data: any) {
19-
const workspacePath = workspace.workspaceFolders?.[0].uri.fsPath
19+
const workspacePath = workspace.workspaceFolders?.[0]?.uri?.fsPath
2020
// compute relative path to the workspace folder
2121
const relative = workspacePath && path.relative(workspacePath, data.fsPath)
2222
if (!relative) {

0 commit comments

Comments
 (0)