From 3cfdc6824f22f723a9e7c8973ddb00aae01d87da Mon Sep 17 00:00:00 2001 From: Ivan Yv Date: Tue, 21 Jan 2025 06:26:49 +0300 Subject: [PATCH] fix: don't throw error, if TargetPlatform not found inside manifest --- src/lsptoolshost/dotnetRuntimeExtensionResolver.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lsptoolshost/dotnetRuntimeExtensionResolver.ts b/src/lsptoolshost/dotnetRuntimeExtensionResolver.ts index 174e72bc5..76a2b5b9c 100644 --- a/src/lsptoolshost/dotnetRuntimeExtensionResolver.ts +++ b/src/lsptoolshost/dotnetRuntimeExtensionResolver.ts @@ -153,7 +153,7 @@ export class DotnetRuntimeExtensionResolver implements IHostExecutableResolver { const contents = await readFile(vsixManifestFile, 'utf-8'); const targetPlatformMatch = /TargetPlatform="(.*)"/.exec(contents); if (!targetPlatformMatch) { - throw new Error(`Could not find extension target platform in ${vsixManifestFile}`); + return undefined; } const targetPlatform = targetPlatformMatch[1];