Skip to content

Commit 54c4a0d

Browse files
Catch error to make search in workspace more robust
1 parent b42d397 commit 54c4a0d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "andreas-talon",
33
"displayName": "Andreas Talon",
44
"description": "VSCode extension used by Talon Voice",
5-
"version": "3.75.0",
5+
"version": "3.75.1",
66
"publisher": "AndreasArvidsson",
77
"license": "MIT",
88
"main": "./out/extension.js",

src/language/searchInWorkspace.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,10 @@ async function searchInDirectory(
9898
path.join(absolutePath, filename),
9999
path.join(relativePath, filename),
100100
filename,
101-
),
101+
).catch((error) => {
102+
console.error(error);
103+
return [];
104+
}),
102105
),
103106
);
104107
return definitions.flat();

0 commit comments

Comments
 (0)