Skip to content

Commit 38f8ad9

Browse files
committed
wip
1 parent 38c2c3a commit 38f8ad9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/support/parser.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const setParserBinaryPath = (context: vscode.ExtensionContext) => {
3636
};
3737

3838
const downloadBinary = async (context: vscode.ExtensionContext) => {
39-
const binaryVersion = "0.1.38";
39+
const binaryVersion = "0.1.41";
4040
const osPlatform = os.platform();
4141
const osArch = os.arch();
4242
const extension = osPlatform === "win32" ? ".exe" : "";
@@ -235,6 +235,10 @@ export const detectInDoc = <T, U extends ValidDetectParamTypes>(
235235
validParamTypes: ValidDetectParamTypes[] = ["string"],
236236
): Promise<T[]> => {
237237
return detect(document).then((results) => {
238+
if (!results) {
239+
return Promise.resolve([]);
240+
}
241+
238242
return Promise.all(
239243
results
240244
.filter(

0 commit comments

Comments
 (0)