File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ export const setParserBinaryPath = (context: vscode.ExtensionContext) => {
36
36
} ;
37
37
38
38
const downloadBinary = async ( context : vscode . ExtensionContext ) => {
39
- const binaryVersion = "0.1.38 " ;
39
+ const binaryVersion = "0.1.41 " ;
40
40
const osPlatform = os . platform ( ) ;
41
41
const osArch = os . arch ( ) ;
42
42
const extension = osPlatform === "win32" ? ".exe" : "" ;
@@ -235,6 +235,10 @@ export const detectInDoc = <T, U extends ValidDetectParamTypes>(
235
235
validParamTypes : ValidDetectParamTypes [ ] = [ "string" ] ,
236
236
) : Promise < T [ ] > => {
237
237
return detect ( document ) . then ( ( results ) => {
238
+ if ( ! results ) {
239
+ return Promise . resolve ( [ ] ) ;
240
+ }
241
+
238
242
return Promise . all (
239
243
results
240
244
. filter (
You can’t perform that action at this time.
0 commit comments